OSDN Git Service

go7007: add MEDIA_CAMERA_SUPPORT dependency
authorArnd Bergmann <arnd@arndb.de>
Tue, 26 Jan 2016 14:10:01 +0000 (12:10 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:05:54 +0000 (11:05 +0100)
commit25df0c385c5a856dd24c74cb74295ccb805fe93a
tree6d4a11af1edf92423b8458921ba3a2f521cec987
parente4e204f548a0577781f228f92b5fb879af5e32d5
go7007: add MEDIA_CAMERA_SUPPORT dependency

commit fa6317eedd6341f2144ed1097706d8c34f18b6e4 upstream.

If MEDIA_SUBDRV_AUTOSELECT and VIDEO_GO7007 are both set, we
automatically select VIDEO_OV7640, but that depends on MEDIA_CAMERA_SUPPORT,
so we get a Kconfig warning if that is disabled:

warning: (VIDEO_GO7007) selects VIDEO_OV7640 which has unmet direct dependencies (MEDIA_SUPPORT && I2C && VIDEO_V4L2 && MEDIA_CAMERA_SUPPORT)

This adds another dependency so we don't accidentally select
it when it is unavailable.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/go7007/Kconfig