diff options
author | Andrew Lunn <andrew@lunn.ch> | 2018-09-29 23:04:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-02 07:55:35 +0200 |
commit | ab2a605fa621ecf4ec26603a237822f7772cfa28 (patch) | |
tree | 7dc31f40374d00acf6c2e232c26cbdfd14dfa9c3 /drivers/net/phy/marvell.c | |
parent | net: phy: Move linkmode helpers to somewhere public (diff) | |
download | linux-ab2a605fa621ecf4ec26603a237822f7772cfa28.tar.xz linux-ab2a605fa621ecf4ec26603a237822f7772cfa28.zip |
net: phy: Add phydev_warn()
Not all new style LINK_MODE bits can be converted into old style
SUPPORTED bits. We need to warn when such a conversion is attempted.
Add a helper for this.
Convert all pr_warn() calls to phydev_warn() where possible.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/marvell.c')
-rw-r--r-- | drivers/net/phy/marvell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 24fc4a73c300..8872a430d74a 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -638,7 +638,7 @@ static void marvell_config_led(struct phy_device *phydev) err = phy_write_paged(phydev, MII_MARVELL_LED_PAGE, MII_PHY_LED_CTRL, def_config); if (err < 0) - pr_warn("Fail to config marvell phy LED.\n"); + phydev_warn(phydev, "Fail to config marvell phy LED.\n"); } static int marvell_config_init(struct phy_device *phydev) |