OpenCloudOS-Kernel/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
..
Kconfig Fix Kconfig dependency problems wrt boolean menuconfigs 2007-06-28 11:34:53 -07:00
Makefile V4L/DVB (4407): Driver dsbr100 is a radio device, not a video one! 2006-08-08 15:52:52 -03: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
miropcm20-radio.c [PATCH] mark struct file_operations const 4 2007-02-12 09:48:45 -08:00
miropcm20-rds-core.c V4L/DVB (4043): Miropcm20: fix sub-optimal header inclusion for sound/oss/aci.h 2006-06-25 02:00:39 -03:00
miropcm20-rds-core.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
miropcm20-rds.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
radio-aimslab.c V4L/DVB (5555): Radio-aimslab.c Replace rt_ioctl to use video_ioctl2 2007-04-27 15:45:56 -03:00
radio-aztech.c V4L/DVB (5152): Implements VIDIOC_[S|G]_INPUT on radio-aztech/radio-maxiradio 2007-02-21 13:34:58 -02:00
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 V4L/DVB (5562): Radio-gemtek-pci.c Replace gemtek_pci_ioctl to use video_ioctl2 2007-04-27 15:46:00 -03:00
radio-gemtek.c V4L/DVB (5556): Radio-gemtek.c Replace gemtek_ioctl to use video_ioctl2 2007-04-27 15:45:57 -03:00
radio-maestro.c V4L/DVB (5624): Radio-maestro.c cleanup 2007-05-09 10:13:09 -03:00
radio-maxiradio.c V4L/DVB (5155): Properly initialize mute and radio frequency 2007-02-21 13:35:08 -02:00
radio-rtrack2.c V4L/DVB (5539): Radio-rtrack2.c Added VIDIOC_[GS]_AUDIO and VIDIOC_[S|G]_INPUT 2007-04-27 15:45:44 -03:00
radio-sf16fmi.c V4L/DVB (5550): Radio-sf16fmi.c Replace fmi_do_ioctl to use video_ioctl2 2007-04-27 15:45:53 -03:00
radio-sf16fmr2.c V4L/DVB (5549): Radio-sf16fmr2.c Replace fmr2_do_ioctl to use video_ioctl2 2007-04-27 15:45:52 -03:00
radio-terratec.c V4L/DVB (5546): Radio-terratec.c Replace tt_do_ioctl to use video_ioctl2 2007-04-27 15:45:49 -03:00
radio-trust.c V4L/DVB (5540): Radio-trust.c Replace tr_do_ioctl to use video_ioctl2 2007-04-27 15:45:45 -03:00
radio-typhoon.c V4L/DVB (5553): Replace typhoon_do_ioctl to use video_ioctl2 2007-04-27 15:45:55 -03:00
radio-zoltrix.c V4L/DVB (5622): Radio-zoltrix.c cleanup 2007-05-09 10:13:07 -03:00