Pārlūkot izejas kodu

SSB: hide empty sub menu

If the target system cannot support SSB, then don't show the menu option as
it'll simply be an empty submenu.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Mike Frysinger 16 gadi atpakaļ
vecāks
revīzija
9581483444
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      drivers/ssb/Kconfig

+ 3 - 2
drivers/ssb/Kconfig

@@ -1,10 +1,11 @@
-menu "Sonics Silicon Backplane"
-
 config SSB_POSSIBLE
 config SSB_POSSIBLE
 	bool
 	bool
 	depends on HAS_IOMEM && HAS_DMA
 	depends on HAS_IOMEM && HAS_DMA
 	default y
 	default y
 
 
+menu "Sonics Silicon Backplane"
+	depends on SSB_POSSIBLE
+
 config SSB
 config SSB
 	tristate "Sonics Silicon Backplane support"
 	tristate "Sonics Silicon Backplane support"
 	depends on SSB_POSSIBLE
 	depends on SSB_POSSIBLE