From: Heiner Kallweit Date: Fri, 12 Jan 2018 20:20:36 +0000 (+0100) Subject: phy: use new helpers phy_set_bits/phy_clear_bits in phylib X-Git-Tag: v4.16-rc1~123^2~155^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=032f4700814346ff935531a9dfa8ecfaeeb38c07;p=users%2Fwilly%2Fxarray.git phy: use new helpers phy_set_bits/phy_clear_bits in phylib Use new helpers phy_set_bits / phy_clear_bits in phylib. Signed-off-by: Heiner Kallweit Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 6bd11a070ec8..b13eed21c87d 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -1660,13 +1660,13 @@ EXPORT_SYMBOL(genphy_config_init); int genphy_suspend(struct phy_device *phydev) { - return phy_modify(phydev, MII_BMCR, 0, BMCR_PDOWN); + return phy_set_bits(phydev, MII_BMCR, BMCR_PDOWN); } EXPORT_SYMBOL(genphy_suspend); int genphy_resume(struct phy_device *phydev) { - return phy_modify(phydev, MII_BMCR, BMCR_PDOWN, 0); + return phy_clear_bits(phydev, MII_BMCR, BMCR_PDOWN); } EXPORT_SYMBOL(genphy_resume);