OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac8322d
)
phy: use new helpers phy_set_bits/phy_clear_bits in phylib
author
Heiner Kallweit
<hkallweit1@gmail.com>
Fri, 12 Jan 2018 20:20:36 +0000
(21:20 +0100)
committer
David S. Miller
<davem@davemloft.net>
Tue, 16 Jan 2018 17:25:10 +0000
(12:25 -0500)
Use new helpers phy_set_bits / phy_clear_bits in phylib.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/phy_device.c
b/drivers/net/phy/phy_device.c
index
6bd11a0
..
b13eed2
100644
(file)
--- 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);