diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-01-28 15:12:33 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-01-30 02:45:20 -0500 |
commit | 87f0fce775a1f8a011439d13c69415d4c2d8f825 (patch) | |
tree | 793fc5f51575f2735f768f4341a37f190aa8de7e /drivers/video | |
parent | 5b72ae9a901cbfbe632570f278486142b037fe51 (diff) |
fb: via: turn gpiolib and i2c selects into dependencies
Device driver should not directly select subsystems. In this case
we get build warnings like
warning: (ARCH_REQUIRE_GPIOLIB && PINCTRL_AT91 && PINCTRL_NOMADIK && MFD_TC6393XB && FB_VIA) selects GPIOLIB which has unmet direct dependencies (ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB)
which we can avoid using the normal 'depends on' statement.
Also, this patch makes it possible for DRM drivers to have a dependency
on GPIOLIB without getting circular Kconfig dependencies.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/Kconfig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/fbdev/Kconfig b/drivers/video/fbdev/Kconfig index f2c3fb7d0399..b3dd417b4719 100644 --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig | |||
@@ -1530,13 +1530,11 @@ config FB_SIS_315 | |||
1530 | 1530 | ||
1531 | config FB_VIA | 1531 | config FB_VIA |
1532 | tristate "VIA UniChrome (Pro) and Chrome9 display support" | 1532 | tristate "VIA UniChrome (Pro) and Chrome9 display support" |
1533 | depends on FB && PCI && X86 | 1533 | depends on FB && PCI && X86 && GPIOLIB && I2C |
1534 | select FB_CFB_FILLRECT | 1534 | select FB_CFB_FILLRECT |
1535 | select FB_CFB_COPYAREA | 1535 | select FB_CFB_COPYAREA |
1536 | select FB_CFB_IMAGEBLIT | 1536 | select FB_CFB_IMAGEBLIT |
1537 | select I2C_ALGOBIT | 1537 | select I2C_ALGOBIT |
1538 | select I2C | ||
1539 | select GPIOLIB | ||
1540 | help | 1538 | help |
1541 | This is the frame buffer device driver for Graphics chips of VIA | 1539 | This is the frame buffer device driver for Graphics chips of VIA |
1542 | UniChrome (Pro) Family (CLE266,PM800/CN400,P4M800CE/P4M800Pro/ | 1540 | UniChrome (Pro) Family (CLE266,PM800/CN400,P4M800CE/P4M800Pro/ |