Changeset 35560


Ignore:
Timestamp:
2013-02-11T17:11:31+01:00 (5 years ago)
Author:
juhosg
Message:

generic: ar8216: don't use ethernet device name in register_switch

The switches are accessed via an MDIO bus. Set the alias
to the name of the MDIO bus, and show that in the message
along with the name of the switch switch device.

Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/ar8216.c

    r35559 r35560  
    18861886 
    18871887        swdev = &priv->dev; 
    1888         ret = register_switch(swdev, phydev->attached_dev); 
     1888        swdev->alias = dev_name(&priv->mii_bus->dev); 
     1889        ret = register_switch(swdev, NULL); 
    18891890        if (ret) 
    18901891                goto err; 
    18911892 
    1892         pr_info("%s: %s switch driver attached.\n", 
    1893                 phydev->attached_dev->name, swdev->name); 
     1893        pr_info("%s: %s switch registered on %s\n", 
     1894                swdev->devname, swdev->name, dev_name(&priv->mii_bus->dev)); 
    18941895 
    18951896        priv->init = true; 
Note: See TracChangeset for help on using the changeset viewer.