kernel-ark/drivers/media/radio
Trent Piepho 59faba1b31 Fix Kconfig dependency problems wrt boolean menuconfigs
If one has a dependency chain (tristate)FOO depends on (bool)BAR depends on
(tristate)BAZ, build problems will result.  If BAZ=m, then BAR can be set
y, which allows FOO=y.  It's possible to have FOO=y && BAZ=m, which
wouldn't be allowed if FOO depended directly on BAZ.  In effect, the bool
promotes the tristate from m to y.

This ends up causing a problem with several menuconfigs that look like:

menuconfig BAR
	bool
	depends on BAZ [tristate]
if BAR
config FOO
	tristate
endif

The solution used here is to add the dependencies of BAR to the if
statement, so that items in the if block will gain a direct
non-bool-promoted dependency on BAZ.  This is how it would work if a menu
was used instead of an if block.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: "David S. Miller" <davem@davemloft.net>
Acked-by: Jeff Garzik <jeff@garzik.org>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-28 11:34:53 -07:00
..
dsbr100.c V4L/DVB (5623): Dsbr100.c Replace usb_dsbr100_do_ioctl to use video_ioctl2 2007-05-09 10:13:08 -03:00
Kconfig Fix Kconfig dependency problems wrt boolean menuconfigs 2007-06-28 11:34:53 -07:00
Makefile
miropcm20-radio.c
miropcm20-rds-core.c
miropcm20-rds-core.h
miropcm20-rds.c
radio-aimslab.c
radio-aztech.c
radio-cadet.c V4L/DVB (5621): Radio-cadet.c Replace cadet_do_ioctl to use video_ioctl2 2007-05-09 10:13:07 -03:00
radio-gemtek-pci.c
radio-gemtek.c
radio-maestro.c V4L/DVB (5624): Radio-maestro.c cleanup 2007-05-09 10:13:09 -03:00
radio-maxiradio.c
radio-rtrack2.c
radio-sf16fmi.c
radio-sf16fmr2.c
radio-terratec.c
radio-trust.c
radio-typhoon.c
radio-zoltrix.c V4L/DVB (5622): Radio-zoltrix.c cleanup 2007-05-09 10:13:07 -03:00