Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2206209e authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller
Browse files

net: Add missing dependencies on NETDEVICES



ETRAX_ETHERNET selects ETHERNET and MII, which depend on NETDEVICES.
I don't think anything should select NETDEVICES, so make it a
dependency.  It also doesn't need to select or depend on ETHERNET,
which has nothing to do with the Ethernet library functions.

BPCTL selects MII, which depends on NETDEVICES.  But everything in the
drivers/staging/silicom directory is related to net devices, so make
NET_VENDOR_SILICOM depend on NETDEVICES and remove the now-redundant
dependencies on NET.

Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d6cf7a86
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -2,8 +2,7 @@ if ETRAX_ARCH_V10


config ETRAX_ETHERNET
config ETRAX_ETHERNET
	bool "Ethernet support"
	bool "Ethernet support"
	depends on ETRAX_ARCH_V10
	depends on ETRAX_ARCH_V10 && NETDEVICES
	select ETHERNET
	select MII
	select MII
	help
	help
	  This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet
	  This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet
+1 −2
Original line number Original line Diff line number Diff line
@@ -2,8 +2,7 @@ if ETRAX_ARCH_V32


config ETRAX_ETHERNET
config ETRAX_ETHERNET
	bool "Ethernet support"
	bool "Ethernet support"
	depends on ETRAX_ARCH_V32
	depends on ETRAX_ARCH_V32 && NETDEVICES
	select ETHERNET
	select MII
	select MII
	help
	help
	  This option enables the ETRAX FS built-in 10/100Mbit Ethernet
	  This option enables the ETRAX FS built-in 10/100Mbit Ethernet
+3 −3
Original line number Original line Diff line number Diff line
@@ -5,7 +5,7 @@
config NET_VENDOR_SILICOM
config NET_VENDOR_SILICOM
	bool "Silicom devices"
	bool "Silicom devices"
	default y
	default y
	depends on PCI
	depends on PCI && NETDEVICES
	---help---
	---help---
	  If you have a network card (Ethernet) belonging to this class,
	  If you have a network card (Ethernet) belonging to this class,
	  say Y.
	  say Y.
@@ -19,7 +19,7 @@ if NET_VENDOR_SILICOM


config SBYPASS
config SBYPASS
	tristate "Silicom BypassCTL library support"
	tristate "Silicom BypassCTL library support"
	depends on PCI && NET
	depends on PCI
	depends on m
	depends on m
	---help---
	---help---
	  If you have a network (Ethernet) controller of this type, say Y
	  If you have a network (Ethernet) controller of this type, say Y
@@ -29,7 +29,7 @@ config SBYPASS


config BPCTL
config BPCTL
	tristate "Silicom BypassCTL net support"
	tristate "Silicom BypassCTL net support"
	depends on PCI && NET
	depends on PCI
	depends on m
	depends on m
	select SBYPASS
	select SBYPASS
	select MII
	select MII