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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Oct 2013 16:17:48 +0000 (09:17 -0700)
commit7b7b9915f77d3c5db399866080751e9dafc9136f
treeb05fdf2f4c4b738970f2e0c475ff7755e8d8b2a9
parent3db27a31a8b1c89bd6a0736559ee58550efe6278
Properly handle tristate dependencies on USB/PCI menus

commit 5077ac3b8108007f4a2b4589f2d373cf55453206 upstream.

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>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/pci/Kconfig
drivers/media/usb/Kconfig