net: KS8851 needs to depend on MII
authorAlexander Beregalov <a.beregalov@gmail.com>
Wed, 22 Jul 2009 01:16:51 +0000 (01:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jul 2009 16:33:08 +0000 (09:33 -0700)
fix this build error when CONFIG_MII is not set
drivers/net/ks8851.c:999: undefined reference to `generic_mii_ioctl'
drivers/net/ks8851.c:1050: undefined reference to `mii_link_ok'
drivers/net/ks8851.c:1056: undefined reference to `mii_nway_restart'
drivers/net/ks8851.c:1044: undefined reference to `mii_ethtool_sset'
drivers/net/ks8851.c:1038: undefined reference to `mii_ethtool_gset'

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Acked-by: Ben Dooks <ben@simtec.co.uk>
drivers/net/Kconfig

index b5a7513df4eb99f3f2312d7fad6edfcc468fdd40..5f6509a5f640820fd89b6ef7b8b420a1ab0c8e39 100644 (file)
@@ -1732,6 +1732,7 @@ config KS8842
 config KS8851
        tristate "Micrel KS8851 SPI"
        depends on SPI
+       select MII
        help
          SPI driver for Micrel KS8851 SPI attached network chip.