diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-01-06 20:11:10 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-07 20:31:25 +0100 |
commit | 84eff6d194df442bee62c129f2f47efb0dbd0468 (patch) | |
tree | dc3c76b19f8e2171416f2f3b42d6bdcbc6da927f /drivers/net/phy/bcm7xxx.c | |
parent | phy: Add phydev_err() and phydev_dbg() macros (diff) | |
download | linux-84eff6d194df442bee62c129f2f47efb0dbd0468.tar.xz linux-84eff6d194df442bee62c129f2f47efb0dbd0468.zip |
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>
Diffstat (limited to 'drivers/net/phy/bcm7xxx.c')
-rw-r--r-- | drivers/net/phy/bcm7xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/bcm7xxx.c b/drivers/net/phy/bcm7xxx.c index d4083c381cd1..9f4e6eb886af 100644 --- a/drivers/net/phy/bcm7xxx.c +++ b/drivers/net/phy/bcm7xxx.c @@ -170,7 +170,7 @@ static int bcm7xxx_28nm_config_init(struct phy_device *phydev) int ret = 0; pr_info_once("%s: %s PHY revision: 0x%02x, patch: %d\n", - dev_name(&phydev->dev), phydev->drv->name, rev, patch); + phydev_name(phydev), phydev->drv->name, rev, patch); /* Dummy read to a register to workaround an issue upon reset where the * internal inverter may not allow the first MDIO transaction to pass |