[PATCH dev-5.0] net: npcm: use bitmap functions on link mode params
Benjamin Fair
benjaminfair at google.com
Wed Apr 3 15:20:52 AEDT 2019
This fixes a compilation error caused by the phy_device "supported" and
"advertising" parameters switching from u32 to bitmap.
Fixes: 35998b5c4073 ("net: npcm: add NPCM7xx Ethernet MAC controller")
Signed-off-by: Benjamin Fair <benjaminfair at google.com>
---
drivers/net/ethernet/nuvoton/npcm7xx_emc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/nuvoton/npcm7xx_emc.c b/drivers/net/ethernet/nuvoton/npcm7xx_emc.c
index 3615e227545e..efb441d511c5 100644
--- a/drivers/net/ethernet/nuvoton/npcm7xx_emc.c
+++ b/drivers/net/ethernet/nuvoton/npcm7xx_emc.c
@@ -1829,8 +1829,8 @@ static int npcm7xx_mii_setup(struct net_device *dev)
goto out3;
}
- phydev->supported &= PHY_BASIC_FEATURES;
- phydev->advertising = phydev->supported;
+ linkmode_and(phydev->supported, phydev->supported, PHY_BASIC_FEATURES);
+ linkmode_copy(phydev->advertising, phydev->supported);
ether->phy_dev = phydev;
return 0;
--
2.21.0.392.gf8f6787159e-goog
More information about the openbmc
mailing list