]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
SSB: hide empty sub menu
authorMike Frysinger <vapier@gentoo.org>
Thu, 6 Nov 2008 01:37:00 +0000 (01:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Nov 2008 21:50:17 +0000 (13:50 -0800)
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>
drivers/ssb/Kconfig

index 307b1f62d949c42c49940d9ca7dd206943076e67..b1b947edcf0157b409279de2d6ae235875de21e8 100644 (file)
@@ -1,10 +1,11 @@
-menu "Sonics Silicon Backplane"
-
 config SSB_POSSIBLE
        bool
        depends on HAS_IOMEM && HAS_DMA
        default y
 
+menu "Sonics Silicon Backplane"
+       depends on SSB_POSSIBLE
+
 config SSB
        tristate "Sonics Silicon Backplane support"
        depends on SSB_POSSIBLE