media: staging: tighten omap4iss dependencies
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Jun 2014 14:49:31 +0000 (11:49 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jul 2014 19:52:53 +0000 (12:52 -0700)
commitcbe6bbc8f50f8339c3fd3e14a7ec223cea3adc25
treeb9590755881a1afb1e0ddf9a3fae65a95c3b17c5
parent6a0a453177b4ed9de73a93af7f15473389b3248b
media: staging: tighten omap4iss dependencies

commit 4856fbd12d69965d3ab680c686222db93872728d upstream.

The OMAP4 camera support depends on I2C and VIDEO_V4L2, both
of which can be loadable modules. This causes build failures
if we want the camera driver to be built-in.

This can be solved by turning the option into "tristate",
which unfortunately causes another problem, because the
driver incorrectly calls a platform-internal interface
for omap4_ctrl_pad_readl/omap4_ctrl_pad_writel.

Instead, this patch just forbids the invalid configurations
and ensures that the driver can only be built if all its
dependencies are built-in.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/omap4iss/Kconfig