summaryrefslogtreecommitdiff
path: root/drivers/staging/mt7621-eth
diff options
context:
space:
mode:
authorNeilBrown <neil@brown.name>2018-12-09 16:20:32 +1100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-12 11:55:39 +0100
commit5b0d9cd7211d2f4bf4acc539c3ba4f346c43b0fe (patch)
tree4e4ae7ab9b964dba0c2d46c4ec6d58e217bd175b /drivers/staging/mt7621-eth
parent90dedc973b867afe514e13c4c3de3e03aa1ee951 (diff)
staging: mt7621-eth: fix compile warning.
This code generates a waring as PHY_GBIT_FEATURES is "long" but ->supported in "int". It looks likely that "PHY_1000BT_FEATURES" is the correct define to use - it is intended to be used with the ->features field. Signed-off-by: NeilBrown <neil@brown.name> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/mt7621-eth')
-rw-r--r--drivers/staging/mt7621-eth/mdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/mt7621-eth/mdio.c b/drivers/staging/mt7621-eth/mdio.c
index ee851281b657..5fea6a447eed 100644
--- a/drivers/staging/mt7621-eth/mdio.c
+++ b/drivers/staging/mt7621-eth/mdio.c
@@ -89,7 +89,7 @@ int mtk_connect_phy_node(struct mtk_eth *eth, struct mtk_mac *mac,
return -ENODEV;
}
- phydev->supported &= PHY_GBIT_FEATURES;
+ phydev->supported &= PHY_1000BT_FEATURES;
phydev->advertising = phydev->supported;
dev_info(eth->dev,