]> Pileus Git - ~andy/linux/commitdiff
net: Move MII out from under NET_CORE and hide it
authorBen Hutchings <ben@decadent.org.uk>
Tue, 18 Jun 2013 02:24:51 +0000 (03:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Jun 2013 05:22:56 +0000 (22:22 -0700)
All drivers that select MII also need to select NET_CORE because MII
depends on it.  This is a bit ridiculous because NET_CORE is just a
menu option that doesn't enable any code by itself.

There is also no need for it to be a visible option, since its users
all select it.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
33 files changed:
arch/cris/arch-v10/drivers/Kconfig
arch/cris/arch-v32/drivers/Kconfig
drivers/net/Kconfig
drivers/net/ethernet/3com/Kconfig
drivers/net/ethernet/Kconfig
drivers/net/ethernet/adaptec/Kconfig
drivers/net/ethernet/adi/Kconfig
drivers/net/ethernet/allwinner/Kconfig
drivers/net/ethernet/amd/Kconfig
drivers/net/ethernet/atheros/Kconfig
drivers/net/ethernet/broadcom/Kconfig
drivers/net/ethernet/cirrus/Kconfig
drivers/net/ethernet/davicom/Kconfig
drivers/net/ethernet/dec/tulip/Kconfig
drivers/net/ethernet/dlink/Kconfig
drivers/net/ethernet/faraday/Kconfig
drivers/net/ethernet/freescale/fs_enet/Kconfig
drivers/net/ethernet/icplus/Kconfig
drivers/net/ethernet/intel/Kconfig
drivers/net/ethernet/micrel/Kconfig
drivers/net/ethernet/nuvoton/Kconfig
drivers/net/ethernet/oki-semi/pch_gbe/Kconfig
drivers/net/ethernet/packetengines/Kconfig
drivers/net/ethernet/rdc/Kconfig
drivers/net/ethernet/realtek/Kconfig
drivers/net/ethernet/renesas/Kconfig
drivers/net/ethernet/sgi/Kconfig
drivers/net/ethernet/sis/Kconfig
drivers/net/ethernet/smsc/Kconfig
drivers/net/ethernet/stmicro/stmmac/Kconfig
drivers/net/ethernet/via/Kconfig
drivers/net/usb/Kconfig
drivers/staging/silicom/Kconfig

index 5f2cdb3e428cd979601b6b15d5e04a24042c7a8e..8eab0c61d57b470035b1207d008a44abcca1b692 100644 (file)
@@ -4,7 +4,6 @@ config ETRAX_ETHERNET
        bool "Ethernet support"
        depends on ETRAX_ARCH_V10
        select ETHERNET
-       select NET_CORE
        select MII
        help
          This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet
index c55971a40c34e8433faa9fc70d12566feed21045..91c4e54ca904fd53d2e52a9b439fe291dd234f7d 100644 (file)
@@ -4,7 +4,6 @@ config ETRAX_ETHERNET
        bool "Ethernet support"
        depends on ETRAX_ARCH_V32
        select ETHERNET
-       select NET_CORE
        select MII
        help
          This option enables the ETRAX FS built-in 10/100Mbit Ethernet
index 3835321b8cf38bbc86b26383d5796964a3c494a5..00aba08f01a96790f16a17c7bf3b4ee61bffc1d2 100644 (file)
@@ -25,6 +25,9 @@ menuconfig NETDEVICES
 # that for each of the symbols.
 if NETDEVICES
 
+config MII
+       tristate
+
 config NET_CORE
        default y
        bool "Network core driver support"
@@ -100,13 +103,6 @@ config NET_FC
          adaptor below. You also should have said Y to "SCSI support" and
          "SCSI generic support".
 
-config MII
-       tristate "Generic Media Independent Interface device support"
-       help
-         Most ethernet controllers have MII transceiver either as an external
-         or internal device.  It is safe to say Y or M here even if your
-         ethernet card lacks MII.
-
 config IFB
        tristate "Intermediate Functional Block support"
        depends on NET_CLS_ACT
index 1c71c763f68009906a1d0bb1cd3eaf636a43ba1f..f00c76377b446cb63999857138e4f0365eccc015 100644 (file)
@@ -67,7 +67,6 @@ config PCMCIA_3C589
 config VORTEX
        tristate "3c590/3c900 series (592/595/597) \"Vortex/Boomerang\" support"
        depends on (PCI || EISA) && HAS_IOPORT
-       select NET_CORE
        select MII
        ---help---
          This option enables driver support for a large number of 10Mbps and
index 18fd6fbeb109e42f644622c8838718ff201b476c..a989669b353a0edae4a3f37b86d33b71ad4c640f 100644 (file)
@@ -64,7 +64,6 @@ config JME
        tristate "JMicron(R) PCI-Express Gigabit Ethernet support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          This driver supports the PCI-Express gigabit ethernet adapters
@@ -96,7 +95,6 @@ config FEALNX
        tristate "Myson MTD-8xx PCI Ethernet support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          Say Y here to support the Myson MTD-800 family of PCI-based Ethernet
@@ -107,7 +105,6 @@ source "drivers/net/ethernet/8390/Kconfig"
 
 config NET_NETX
        tristate "NetX Ethernet support"
-       select NET_CORE
        select MII
        depends on ARCH_NETX
        ---help---
@@ -125,7 +122,6 @@ source "drivers/net/ethernet/oki-semi/Kconfig"
 config ETHOC
        tristate "OpenCores 10/100 Mbps Ethernet MAC support"
        depends on HAS_IOMEM && HAS_DMA
-       select NET_CORE
        select MII
        select PHYLIB
        select CRC32
index 0bff571b1bb3887dabf6516cbcb321b0f10dde90..5c804bbe3dabdeebc6dc16870e5f0b3177ed8246 100644 (file)
@@ -22,7 +22,6 @@ config ADAPTEC_STARFIRE
        tristate "Adaptec Starfire/DuraLAN support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          Say Y here if you have an Adaptec Starfire (or DuraLAN) PCI network
index a9481606bbcd713f6fa446325521b2309b64c856..f952fff6a9a9e1c6100e234fa5c085731b1c81ce 100644 (file)
@@ -23,7 +23,6 @@ config BFIN_MAC
        tristate "Blackfin on-chip MAC support"
        depends on (BF516 || BF518 || BF526 || BF527 || BF536 || BF537)
        select CRC32
-       select NET_CORE
        select MII
        select PHYLIB
        select BFIN_MAC_USE_L1 if DMA_UNCACHED_NONE
index 66d35324f31efbf76c9b855d6c8ae33c09b672a3..53ad213e865ba350176ac8b59d83bac0dc58ca09 100644 (file)
@@ -24,7 +24,6 @@ config SUN4I_EMAC
        depends on ARCH_SUNXI
        depends on OF
        select CRC32
-       select NET_CORE
        select MII
        select PHYLIB
         ---help---
index 13d74aa4033dd44164dada90d0173efe526f9c16..562df46e0a82e24968b8b89bc35a7b357982e6ec 100644 (file)
@@ -34,7 +34,6 @@ config AMD8111_ETH
        tristate "AMD 8111 (new PCI LANCE) support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          If you have an AMD 8111-based PCI LANCE ethernet card,
@@ -60,7 +59,6 @@ config PCNET32
        tristate "AMD PCnet32 PCI support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          If you have a PCnet32 or PCnetPCI based network (Ethernet) card,
index ad6aa1e98348cef47bfd229bc58375f0ef9396c6..39e8d6cc8843de8bdb189dfd81331bc296f0b80c 100644 (file)
@@ -22,7 +22,6 @@ config ATL2
        tristate "Atheros L2 Fast Ethernet support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          This driver supports the Atheros L2 fast ethernet adapter.
@@ -34,7 +33,6 @@ config ATL1
        tristate "Atheros/Attansic L1 Gigabit Ethernet support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          This driver supports the Atheros/Attansic L1 gigabit ethernet
@@ -47,7 +45,6 @@ config ATL1E
        tristate "Atheros L1E Gigabit Ethernet support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          This driver supports the Atheros L1E gigabit ethernet adapter.
@@ -59,7 +56,6 @@ config ATL1C
        tristate "Atheros L1C Gigabit Ethernet support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          This driver supports the Atheros L1C gigabit ethernet adapter.
index 3e69b3f88099ba931c9f6b18f4a71da82d182bdc..1d680baf43d620d2064395750a8ce545b2803126 100644 (file)
@@ -22,7 +22,6 @@ config B44
        tristate "Broadcom 440x/47xx ethernet support"
        depends on SSB_POSSIBLE && HAS_DMA
        select SSB
-       select NET_CORE
        select MII
        ---help---
          If you have a network (Ethernet) controller of this type, say Y
@@ -54,7 +53,6 @@ config B44_PCI
 config BCM63XX_ENET
        tristate "Broadcom 63xx internal mac support"
        depends on BCM63XX
-       select NET_CORE
        select MII
        select PHYLIB
        help
index 8388e36cf08f97b17d75230b68e3683a3a2b365e..7403dff8f14a4cf38090f8b32c57645d91b1770e 100644 (file)
@@ -44,7 +44,6 @@ config CS89x0_PLATFORM
 config EP93XX_ETH
        tristate "EP93xx Ethernet support"
        depends on ARM && ARCH_EP93XX
-       select NET_CORE
        select MII
        help
          This is a driver for the ethernet hardware included in EP93xx CPUs.
index 9745fe5e8039ccfee2346449934246c747ec5c70..316c5e5a92ad450372cd5eb8fa81b70a7df795a7 100644 (file)
@@ -6,7 +6,6 @@ config DM9000
        tristate "DM9000 support"
        depends on ARM || BLACKFIN || MIPS || COLDFIRE
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          Support for DM9000 chipset.
index 1df33c799c0012a9144811c90c39a063e92fb45e..eb9ba6e97d04a4001d3884a1045c364edbc0bab2 100644 (file)
@@ -126,7 +126,6 @@ config WINBOND_840
        tristate "Winbond W89c840 Ethernet support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          This driver is for the Winbond W89c840 chip.  It also works with 
index ee26ce78e270cabfb7acff61745b597703bab13c..c543ac11ce08958a94ef8384b9211d10cd1dbfc2 100644 (file)
@@ -36,7 +36,6 @@ config SUNDANCE
        tristate "Sundance Alta support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          This driver is for the Sundance "Alta" chip.
index b8974b9e3b479cd90b90bff7235245629ab59635..5918c68916946acc9cf14202b0e28d823a7515c3 100644 (file)
@@ -21,7 +21,6 @@ if NET_VENDOR_FARADAY
 config FTMAC100
        tristate "Faraday FTMAC100 10/100 Ethernet support"
        depends on ARM
-       select NET_CORE
        select MII
        ---help---
          This driver supports the FTMAC100 10/100 Ethernet controller
index 268414d9f2cbfc84272ed6184ea34ab211cdc537..be92229f2c2a52f447c96a086e4683cc0c341e68 100644 (file)
@@ -1,7 +1,6 @@
 config FS_ENET
        tristate "Freescale Ethernet Driver"
        depends on NET_VENDOR_FREESCALE && (CPM1 || CPM2 || PPC_MPC512x)
-       select NET_CORE
        select MII
        select PHYLIB
 
index 5119ef18953b5d98e0c1c612ff386b82445ce6f8..14a66e9d2e26ea85a1976fa5d396ef4fad25f85e 100644 (file)
@@ -5,7 +5,6 @@
 config IP1000
        tristate "IP1000 Gigabit Ethernet support"
        depends on PCI
-       select NET_CORE
        select MII
        ---help---
          This driver supports IP1000 gigabit Ethernet cards.
index 05f7264c51f71899c308b19d616e2a8718de152a..f0e7ed20a750b56d1bc77e6bc9151847ac09ac5b 100644 (file)
@@ -20,7 +20,6 @@ if NET_VENDOR_INTEL
 config E100
        tristate "Intel(R) PRO/100+ support"
        depends on PCI
-       select NET_CORE
        select MII
        ---help---
          This driver supports Intel(R) PRO/100 family of adapters.
index fe42fc00d8d314d6011d621c23c64370b93fe304..d16b11ed2e5227a75f5a183446136f81de855281 100644 (file)
@@ -22,7 +22,6 @@ if NET_VENDOR_MICREL
 config ARM_KS8695_ETHER
        tristate "KS8695 Ethernet support"
        depends on ARM && ARCH_KS8695
-       select NET_CORE
        select MII
        ---help---
          If you wish to compile a kernel for the KS8695 and want to
@@ -39,7 +38,6 @@ config KS8842
 config KS8851
        tristate "Micrel KS8851 SPI"
        depends on SPI
-       select NET_CORE
        select MII
        select CRC32
        select EEPROM_93CX6
@@ -49,7 +47,6 @@ config KS8851
 config KS8851_MLL
        tristate "Micrel KS8851 MLL"
        depends on HAS_IOMEM
-       select NET_CORE
        select MII
        ---help---
          This platform driver is for Micrel KS8851 Address/data bus
@@ -58,7 +55,6 @@ config KS8851_MLL
 config KSZ884X_PCI
        tristate "Micrel KSZ8841/2 PCI"
        depends on PCI
-       select NET_CORE
        select MII
        select CRC32
        ---help---
index 334c17183095eda5ff5d0775171ecf0a46636c5a..01182b559473cc4812909bccdcbf78cb81de08ce 100644 (file)
@@ -22,7 +22,6 @@ config W90P910_ETH
        tristate "Nuvoton w90p910 Ethernet support"
        depends on ARM && ARCH_W90X900
        select PHYLIB
-       select NET_CORE
        select MII
        ---help---
          Say Y here if you want to use built-in Ethernet ports
index 34d05bf72b2e0e403e3568d7eb2193535d8fda6c..cb22341a14a8c03fd7627c0d2d2a31f9f68ce126 100644 (file)
@@ -5,7 +5,6 @@
 config PCH_GBE
        tristate "OKI SEMICONDUCTOR IOH(ML7223/ML7831) GbE"
        depends on PCI
-       select NET_CORE
        select MII
        select PTP_1588_CLOCK_PCH
        ---help---
index cbbeca3f8c5c16c3acd5993601c271055fa94c8c..8d5180043c7001986a3185442743f6a3dbdb44b7 100644 (file)
@@ -21,7 +21,6 @@ if NET_PACKET_ENGINE
 config HAMACHI
        tristate "Packet Engines Hamachi GNIC-II support"
        depends on PCI
-       select NET_CORE
        select MII
        ---help---
          If you have a Gigabit Ethernet card of this type, say Y and read
index c8ba4b3494c17181e507af32cfcd722c1da28c68..2055f7eb2ba94f6855a37bf8a613dd77e75a757e 100644 (file)
@@ -22,7 +22,6 @@ config R6040
        tristate "RDC R6040 Fast Ethernet Adapter support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        select PHYLIB
        ---help---
index 783fa8b5cde77fba13538764f0af3466b1e7f368..ae5d027096ed6f39e6005490b417bf56d44dd565 100644 (file)
@@ -37,7 +37,6 @@ config 8139CP
        tristate "RealTek RTL-8139 C+ PCI Fast Ethernet Adapter support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          This is a driver for the Fast Ethernet PCI network cards based on
@@ -52,7 +51,6 @@ config 8139TOO
        tristate "RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          This is a driver for the Fast Ethernet PCI network cards based on
@@ -107,7 +105,6 @@ config R8169
        depends on PCI
        select FW_LOADER
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          Say Y here if you have a Realtek 8169 PCI Gigabit Ethernet adapter.
index 267eac054fa466938fa145257940deed0aa73aec..544514e66187e3300320114c7e35826fbc8dab67 100644 (file)
@@ -5,7 +5,6 @@
 config SH_ETH
        tristate "Renesas SuperH Ethernet support"
        select CRC32
-       select NET_CORE
        select MII
        select MDIO_BITBANG
        select PHYLIB
index c1c4bb868a3b06ba23faf5ec7dcd80d06034ed79..e832f46660c9edab927d7d335cd6be6a6ff7d989 100644 (file)
@@ -22,7 +22,6 @@ config SGI_IOC3_ETH
        bool "SGI IOC3 Ethernet"
        depends on PCI && SGI_IP27
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          If you have a network (Ethernet) card of this type, say Y and read
index f1135cc1bd48abd5b60714c459922df7f762f06a..68d052b09af1e1ee9950f3b2e0944aca7a8e86c3 100644 (file)
@@ -22,7 +22,6 @@ config SIS900
        tristate "SiS 900/7016 PCI Fast Ethernet Adapter support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          This is a driver for the Fast Ethernet PCI network cards based on
@@ -39,7 +38,6 @@ config SIS190
        tristate "SiS190/SiS191 gigabit ethernet support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          Say Y here if you have a SiS 190 PCI Fast Ethernet adapter or
index ff9e9947403900af8215ee809de77acfad719427..068fc44d37e1d0723849da40ade4d77671be0917 100644 (file)
@@ -37,7 +37,6 @@ config SMC9194
 config SMC91X
        tristate "SMC 91C9x/91C1xxx support"
        select CRC32
-       select NET_CORE
        select MII
        depends on (ARM || M32R || SUPERH || MIPS || BLACKFIN || \
                    MN10300 || COLDFIRE || ARM64)
@@ -57,7 +56,6 @@ config PCMCIA_SMC91C92
        tristate "SMC 91Cxx PCMCIA support"
        depends on PCMCIA
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          Say Y here if you intend to attach an SMC 91Cxx compatible PCMCIA
@@ -70,7 +68,6 @@ config EPIC100
        tristate "SMC EtherPower II"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          This driver is for the SMC EtherPower II 9432 PCI Ethernet NIC,
@@ -81,7 +78,6 @@ config EPIC100
 config SMC911X
        tristate "SMSC LAN911[5678] support"
        select CRC32
-       select NET_CORE
        select MII
        depends on (ARM || SUPERH || MN10300)
        ---help---
@@ -99,7 +95,6 @@ config SMSC911X
        tristate "SMSC LAN911x/LAN921x families embedded ethernet support"
        depends on HAS_IOMEM
        select CRC32
-       select NET_CORE
        select MII
        select PHYLIB
        ---help---
index 43c1f32233220e17a27936572fa27de9d31219ee..6e52c0f74cd9daad4ac5f80e1db98eec04958d55 100644 (file)
@@ -1,7 +1,6 @@
 config STMMAC_ETH
        tristate "STMicroelectronics 10/100/1000 Ethernet driver"
        depends on HAS_IOMEM && HAS_DMA
-       select NET_CORE
        select MII
        select PHYLIB
        select CRC32
index 6a87097d88c06b316a3a05e24a8017d4d350780e..8a049a2b44742aabe24221b12a6bcb2a4caf357f 100644 (file)
@@ -21,7 +21,6 @@ config VIA_RHINE
        tristate "VIA Rhine support"
        depends on PCI
        select CRC32
-       select NET_CORE
        select MII
        ---help---
          If you have a VIA "Rhine" based network card (Rhine-I (VT86C100A),
@@ -47,7 +46,6 @@ config VIA_VELOCITY
        depends on (PCI || USE_OF)
        select CRC32
        select CRC_CCITT
-       select NET_CORE
        select MII
        ---help---
          If you have a VIA "Velocity" based network card say Y here.
index 287cc624b90be5335337fe56b9ea3cdf405563d0..d84bfd4109a455661ee5160bddbe20c6cc597d01 100644 (file)
@@ -67,7 +67,6 @@ config USB_KAWETH
 
 config USB_PEGASUS
        tristate "USB Pegasus/Pegasus-II based ethernet device support"
-       select NET_CORE
        select MII
        ---help---
          Say Y here if you know you have Pegasus or Pegasus-II based adapter.
@@ -83,7 +82,6 @@ config USB_PEGASUS
 
 config USB_RTL8150
        tristate "USB RTL8150 based ethernet device support"
-       select NET_CORE
        select MII
        help
          Say Y here if you have RTL8150 based usb-ethernet adapter.
@@ -95,7 +93,6 @@ config USB_RTL8150
 
 config USB_RTL8152
        tristate "Realtek RTL8152 Based USB 2.0 Ethernet Adapters"
-       select NET_CORE
        select MII
        help
          This option adds support for Realtek RTL8152 based USB 2.0
@@ -106,7 +103,6 @@ config USB_RTL8152
 
 config USB_USBNET
        tristate "Multi-purpose USB Networking Framework"
-       select NET_CORE
        select MII
        ---help---
          This driver supports several kinds of network links over USB,
index eda2e7d73645d785ea4a825ebffd41ad223b0bf6..fc082db628ec5709b8913206182f5ecd54b33c52 100644 (file)
@@ -32,7 +32,6 @@ config BPCTL
        depends on PCI && NET
        depends on m
        select SBYPASS
-       select NET_CORE
        select MII
        ---help---
          If you have a network (Ethernet) controller of this type, say Y