]> git.baikalelectronics.ru Git - kernel.git/commit
drm: shmobile: fix Kconfig dependencies
authorArnd Bergmann <arnd@arndb.de>
Thu, 29 Jan 2015 16:16:38 +0000 (17:16 +0100)
committerDave Airlie <airlied@gmail.com>
Sat, 31 Jan 2015 00:11:54 +0000 (10:11 +1000)
commita64715b0de2085a2e39aa459f4682a032b1f01e7
treed86da52078e048d0e5d98481b0635efb5e58eab0
parentc819e1e1f281e5a47d80ae9b5a269b5f1d1b3dc6
drm: shmobile: fix Kconfig dependencies

The shmobile drm driver selects BACKLIGHT_CLASS_DEVICE
as of 1e92c70644ec "drm: shmobile: Add dependency on
BACKLIGHT_CLASS_DEVICE", but that option in turn depends
on BACKLIGHT_LCD_SUPPORT, so we actually have to select
both, or alternatively use 'depends on BACKLIGHT_CLASS_DEVICE'.

Further, the driver uses FB_SH_MOBILE_MERAM if that is
enabled, but this breaks if MERAM is a module while
the DRM driver is built-in. To solve this, add a dependency
on "FB_SH_MOBILE_MERAM || !FB_SH_MOBILE_MERAM", which forces
DRM_SHMOBILE to be a module if FB_SH_MOBILE_MERAM set to 'm'.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dave Airlie <airlied@gmail.com>
drivers/gpu/drm/shmobile/Kconfig