phy: add phydev_name() wrapper
Add a phydev_name() function, to help with moving some structure members from phy_device. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
72ba48be3e
commit
84eff6d194
@@ -372,7 +372,7 @@ static int ax_mii_probe(struct net_device *dev)
|
||||
ax->phy_dev = phy_dev;
|
||||
|
||||
netdev_info(dev, "PHY driver [%s] (mii_bus:phy_addr=%s, irq=%d)\n",
|
||||
phy_dev->drv->name, dev_name(&phy_dev->dev), phy_dev->irq);
|
||||
phy_dev->drv->name, phydev_name(phy_dev), phy_dev->irq);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user