]> git.baikalelectronics.ru Git - kernel.git/commit
smsc911x: Unconditionally include linux/smscphy.h in smsc911x.h
authorDavid S. Miller <davem@davemloft.net>
Sat, 7 Jan 2012 20:22:11 +0000 (12:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jan 2012 20:22:11 +0000 (12:22 -0800)
commita4f5aa67c3c46687871af58fd5f3db3110710ef3
tree310743a99d434d4328b937273f6fcc6b56812cd1
parent5aa56ae6eaee52ef1debd40a5f526745925571c1
smsc911x: Unconditionally include linux/smscphy.h in smsc911x.h

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>
drivers/net/ethernet/smsc/smsc911x.h