Skip to contentSkip to conversation

only show the tokenring submenu if tokenring is selected

PATCH New Tomas Szepe 1 participant 1 message Jan 1, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 only show the tokenring submenu if tokenring is selected

Trivial: This is a follow-up to your "Gigabit Ethernet submenu" precedent.

Only show the tokenring submenu if the tokenring entry is selected.

Signature · 31 lines
Tomas Szepe <[email protected]>

diff -urN a/drivers/net/tokenring/Kconfig b/drivers/net/tokenring/Kconfig
--- a/drivers/net/tokenring/Kconfig	2002-12-08 20:06:34.000000000 +0100
+++ b/drivers/net/tokenring/Kconfig	2003-01-01 15:23:10.000000000 +0100
@@ -2,13 +2,10 @@
 # Token Ring driver configuration
 #
 
-menu "Token Ring devices (depends on LLC=y)"
-	depends on NETDEVICES
-
 # So far, we only have PCI, ISA, and MCA token ring devices
 config TR
-	bool "Token Ring driver support"
-	depends on (PCI || ISA || MCA) && LLC=y
+	depends on (PCI || ISA || MCA) && NETDEVICES && LLC=y
+	bool "Token Ring driver support (depends on LLC=y)"
 	help
 	  Token Ring is IBM's way of communication on a local network; the
 	  rest of the world uses Ethernet. To participate on a Token Ring
@@ -19,6 +16,9 @@
 	  from <http://www.linuxdoc.org/docs.html#howto>. Most people can
 	  say N here.
 
+menu "Token Ring devices"
+	depends on TR
+
 config IBMTR
 	tristate "IBM Tropic chipset based adapter support"
 	depends on TR && (ISA || MCA)