]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Properly handle tristate dependencies on USB/PCI menus
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 22 May 2013 14:25:52 +0000 (11:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 17 Jun 2013 14:40:28 +0000 (11:40 -0300)
As USB/PCI/MEDIA_SUPPORT dependencies can be tristate, we can't
simply make the bool menu to be dependent on it. Everything below
the menu should also depend on it, otherwise, we risk to allow
building them with 'y', while only 'm' would be supported.

So, add an IF just before everything below, in order to avoid
such risks.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/Kconfig
drivers/media/usb/Kconfig

index d4e2ed3f27e5edd45ab63caf69e77c2364e23a43..53196f1366f30d915b8a06492d7640200970f435 100644 (file)
@@ -1,6 +1,7 @@
+if PCI && MEDIA_SUPPORT
+
 menuconfig MEDIA_PCI_SUPPORT
        bool "Media PCI Adapters"
-       depends on PCI && MEDIA_SUPPORT
        help
          Enable media drivers for PCI/PCIe bus.
          If you have such devices, say Y.
@@ -45,3 +46,4 @@ source "drivers/media/pci/ddbridge/Kconfig"
 endif
 
 endif #MEDIA_PCI_SUPPORT
+endif #PCI
index 0d8fe005d1f4c151e5c0c93afd4c0b802b581128..7cac453e34c706cc6f45b80f19c5a590925357bc 100644 (file)
@@ -1,8 +1,7 @@
-if USB
+if USB && MEDIA_SUPPORT
 
 menuconfig MEDIA_USB_SUPPORT
        bool "Media USB Adapters"
-       depends on MEDIA_SUPPORT
        help
          Enable media drivers for USB bus.
          If you have such devices, say Y.