projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90dedc9
)
staging: mt7621-eth: fix compile warning.
author
NeilBrown
<neil@brown.name>
Sun, 9 Dec 2018 05:20:32 +0000
(16:20 +1100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 12 Dec 2018 10:55:39 +0000
(11:55 +0100)
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>
drivers/staging/mt7621-eth/mdio.c
patch
|
blob
|
history
diff --git
a/drivers/staging/mt7621-eth/mdio.c
b/drivers/staging/mt7621-eth/mdio.c
index ee851281b657aaed8c50e72b5342e5de12c55b4f..5fea6a447eed99505cef8f995cd0d6f237a9feef 100644
(file)
--- 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_
GBI
T_FEATURES;
+ phydev->supported &= PHY_
1000B
T_FEATURES;
phydev->advertising = phydev->supported;
dev_info(eth->dev,