Skip to content

Commit

Permalink
smsc911x: Unconditionally include linux/smscphy.h in smsc911x.h
Browse files Browse the repository at this point in the history
The energy detect enable/disable code in the driver uses some
register defines in this header unconditionally, so guarding
the smscphy.h header include with CONFIG_SMSC_PHY leads to
build failures in some configurations.

Reported-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jan 7, 2012
1 parent 6c15d74 commit 96dab45
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/smsc/smsc911x.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,6 @@
#include <asm/smsc911x.h>
#endif

#ifdef CONFIG_SMSC_PHY
#include <linux/smscphy.h>
#endif

#endif /* __SMSC911X_H__ */

0 comments on commit 96dab45

Please sign in to comment.