video: clarify I2C dependencies
authorArnd Bergmann <arnd@arndb.de>
Thu, 24 Apr 2014 12:28:19 +0000 (13:28 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 9 May 2014 09:55:45 +0000 (12:55 +0300)
We can only use I2C support in frame buffer drivers if
Either I2C is built-in, or both I2C and the driver itself
are loadable modules.

Fix this dependency for MB862XX and CyberPro frame buffers.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: linux-fbdev@vger.kernel.org
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/Kconfig

index 758685e8046dde6a6d29dadf3926575fe1edda17..a8c9b2de28bdf41903809b7b331658f1ba7679d2 100644 (file)
@@ -360,6 +360,7 @@ config FB_CYBER2000_DDC
 config FB_CYBER2000_I2C
        bool "CyberPro 2000/2010/5000 I2C support"
        depends on FB_CYBER2000 && I2C && ARCH_NETWINDER
+       depends on I2C=y || FB_CYBER2000=m
        select I2C_ALGOBIT
        help
          Enable support for the I2C video decoder interface on the
@@ -2296,6 +2297,7 @@ endchoice
 config FB_MB862XX_I2C
        bool "Support I2C bus on MB862XX GDC"
        depends on FB_MB862XX && I2C
+       depends on FB_MB862XX=m || I2C=y
        default y
        help
          Selecting this option adds Coral-P(A)/Lime GDC I2C bus adapter