fix smsc911x build failure due to "net/smsc911x: Check if PHY is in operational mode before software reset"
Subsystems (3)
From: Russell King <[email protected]>
Commit 6386994e03ebbe (net/smsc911x: Check if PHY is in operational mode before software reset) causes the following build errors with ARM Versatile Express:
drivers/net/ethernet/smsc/smsc911x.c: In function 'smsc911x_phy_disable_energy_detect':drivers/net/ethernet/smsc/smsc911x.c:1329: error: 'MII_LAN83C185_CTRL_STATUS' undeclared (first use in this function) drivers/net/ethernet/smsc/smsc911x.c:1329: error: (Each undeclared identifier is reported only once drivers/net/ethernet/smsc/smsc911x.c:1329: error: for each function it appears in.) drivers/net/ethernet/smsc/smsc911x.c:1340: error: 'MII_LAN83C185_EDPWRDOWN' undeclared (first use in this function) drivers/net/ethernet/smsc/smsc911x.c:1341: error: 'MII_LAN83C185_ENERGYON' undeclared (first use in this function) drivers/net/ethernet/smsc/smsc911x.c: In function 'smsc911x_phy_enable_energy_detect':drivers/net/ethernet/smsc/smsc911x.c:1364: error: 'MII_LAN83C185_CTRL_STATUS' undeclared (first use in this function) drivers/net/ethernet/smsc/smsc911x.c:1372: error: 'MII_LAN83C185_EDPWRDOWN' undeclared (first use in this function)
Adding linux/smscphy.h solves this build error.
--
drivers/net/ethernet/smsc/smsc911x.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/ethernet/smsc/smsc911x.c +1 -0
@@ -54,6 +54,7 @@#include <linux/swab.h> #include <linux/phy.h> #include <linux/smsc911x.h> +#include <linux/smscphy.h> #include <linux/device.h> #include <linux/of.h> #include <linux/of_device.h>
David Miller
maintainerFrom: Russell King - ARM Linux <[email protected]>
Date: Wed, 18 Jan 2012 17:36:12 +0000
Quoted 5 lines
From: Russell King <[email protected]>
Commit
6386994e03ebbe(net/smsc911x: Check if PHY is in operational mode before software reset) causes the following build errors with ARM Versatile Express:
This was already fixed by me by including smscphy.h in smsc911x.h