Skip to content

Commit a1606c7

Browse files
bwhacksdavem330
authored andcommitted
net: Move MII out from under NET_CORE and hide it
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>
1 parent 9ef71e0 commit a1606c7

33 files changed

Lines changed: 3 additions & 61 deletions

File tree

‎arch/cris/arch-v10/drivers/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ config ETRAX_ETHERNET
44
bool "Ethernet support"
55
depends on ETRAX_ARCH_V10
66
select ETHERNET
7-
select NET_CORE
87
select MII
98
help
109
This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet

‎arch/cris/arch-v32/drivers/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ config ETRAX_ETHERNET
44
bool "Ethernet support"
55
depends on ETRAX_ARCH_V32
66
select ETHERNET
7-
select NET_CORE
87
select MII
98
help
109
This option enables the ETRAX FS built-in 10/100Mbit Ethernet

‎drivers/net/Kconfig‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ menuconfig NETDEVICES
2525
# that for each of the symbols.
2626
if NETDEVICES
2727

28+
config MII
29+
tristate
30+
2831
config NET_CORE
2932
default y
3033
bool "Network core driver support"
@@ -100,13 +103,6 @@ config NET_FC
100103
adaptor below. You also should have said Y to "SCSI support" and
101104
"SCSI generic support".
102105

103-
config MII
104-
tristate "Generic Media Independent Interface device support"
105-
help
106-
Most ethernet controllers have MII transceiver either as an external
107-
or internal device. It is safe to say Y or M here even if your
108-
ethernet card lacks MII.
109-
110106
config IFB
111107
tristate "Intermediate Functional Block support"
112108
depends on NET_CLS_ACT

‎drivers/net/ethernet/3com/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ config PCMCIA_3C589
6767
config VORTEX
6868
tristate "3c590/3c900 series (592/595/597) \"Vortex/Boomerang\" support"
6969
depends on (PCI || EISA) && HAS_IOPORT
70-
select NET_CORE
7170
select MII
7271
---help---
7372
This option enables driver support for a large number of 10Mbps and

‎drivers/net/ethernet/Kconfig‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ config JME
6464
tristate "JMicron(R) PCI-Express Gigabit Ethernet support"
6565
depends on PCI
6666
select CRC32
67-
select NET_CORE
6867
select MII
6968
---help---
7069
This driver supports the PCI-Express gigabit ethernet adapters
@@ -96,7 +95,6 @@ config FEALNX
9695
tristate "Myson MTD-8xx PCI Ethernet support"
9796
depends on PCI
9897
select CRC32
99-
select NET_CORE
10098
select MII
10199
---help---
102100
Say Y here to support the Myson MTD-800 family of PCI-based Ethernet
@@ -107,7 +105,6 @@ source "drivers/net/ethernet/8390/Kconfig"
107105

108106
config NET_NETX
109107
tristate "NetX Ethernet support"
110-
select NET_CORE
111108
select MII
112109
depends on ARCH_NETX
113110
---help---
@@ -125,7 +122,6 @@ source "drivers/net/ethernet/oki-semi/Kconfig"
125122
config ETHOC
126123
tristate "OpenCores 10/100 Mbps Ethernet MAC support"
127124
depends on HAS_IOMEM && HAS_DMA
128-
select NET_CORE
129125
select MII
130126
select PHYLIB
131127
select CRC32

‎drivers/net/ethernet/adaptec/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ config ADAPTEC_STARFIRE
2222
tristate "Adaptec Starfire/DuraLAN support"
2323
depends on PCI
2424
select CRC32
25-
select NET_CORE
2625
select MII
2726
---help---
2827
Say Y here if you have an Adaptec Starfire (or DuraLAN) PCI network

‎drivers/net/ethernet/adi/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ config BFIN_MAC
2323
tristate "Blackfin on-chip MAC support"
2424
depends on (BF516 || BF518 || BF526 || BF527 || BF536 || BF537)
2525
select CRC32
26-
select NET_CORE
2726
select MII
2827
select PHYLIB
2928
select BFIN_MAC_USE_L1 if DMA_UNCACHED_NONE

‎drivers/net/ethernet/allwinner/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ config SUN4I_EMAC
2424
depends on ARCH_SUNXI
2525
depends on OF
2626
select CRC32
27-
select NET_CORE
2827
select MII
2928
select PHYLIB
3029
---help---

‎drivers/net/ethernet/amd/Kconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ config AMD8111_ETH
3434
tristate "AMD 8111 (new PCI LANCE) support"
3535
depends on PCI
3636
select CRC32
37-
select NET_CORE
3837
select MII
3938
---help---
4039
If you have an AMD 8111-based PCI LANCE ethernet card,
@@ -60,7 +59,6 @@ config PCNET32
6059
tristate "AMD PCnet32 PCI support"
6160
depends on PCI
6261
select CRC32
63-
select NET_CORE
6462
select MII
6563
---help---
6664
If you have a PCnet32 or PCnetPCI based network (Ethernet) card,

‎drivers/net/ethernet/atheros/Kconfig‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ config ATL2
2222
tristate "Atheros L2 Fast Ethernet support"
2323
depends on PCI
2424
select CRC32
25-
select NET_CORE
2625
select MII
2726
---help---
2827
This driver supports the Atheros L2 fast ethernet adapter.
@@ -34,7 +33,6 @@ config ATL1
3433
tristate "Atheros/Attansic L1 Gigabit Ethernet support"
3534
depends on PCI
3635
select CRC32
37-
select NET_CORE
3836
select MII
3937
---help---
4038
This driver supports the Atheros/Attansic L1 gigabit ethernet
@@ -47,7 +45,6 @@ config ATL1E
4745
tristate "Atheros L1E Gigabit Ethernet support"
4846
depends on PCI
4947
select CRC32
50-
select NET_CORE
5148
select MII
5249
---help---
5350
This driver supports the Atheros L1E gigabit ethernet adapter.
@@ -59,7 +56,6 @@ config ATL1C
5956
tristate "Atheros L1C Gigabit Ethernet support"
6057
depends on PCI
6158
select CRC32
62-
select NET_CORE
6359
select MII
6460
---help---
6561
This driver supports the Atheros L1C gigabit ethernet adapter.

0 commit comments

Comments
 (0)