diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-01-29 11:16:38 -0500 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2015-01-30 19:11:54 -0500 |
commit | 56a8620a15bbc05d8ef57ace7fc769372de1178a (patch) | |
tree | d86da52078e048d0e5d98481b0635efb5e58eab0 | |
parent | 8e6a363def27b2bfe0c9fcb325350f4d1b538443 (diff) |
drm: shmobile: fix Kconfig dependencies
The shmobile drm driver selects BACKLIGHT_CLASS_DEVICE
as of 0a5a5499ad88 "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>
-rw-r--r-- | drivers/gpu/drm/shmobile/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/shmobile/Kconfig b/drivers/gpu/drm/shmobile/Kconfig index a50fe0eeaa0d..8d17d00ddb4b 100644 --- a/drivers/gpu/drm/shmobile/Kconfig +++ b/drivers/gpu/drm/shmobile/Kconfig | |||
@@ -2,7 +2,9 @@ config DRM_SHMOBILE | |||
2 | tristate "DRM Support for SH Mobile" | 2 | tristate "DRM Support for SH Mobile" |
3 | depends on DRM && ARM | 3 | depends on DRM && ARM |
4 | depends on ARCH_SHMOBILE || COMPILE_TEST | 4 | depends on ARCH_SHMOBILE || COMPILE_TEST |
5 | depends on FB_SH_MOBILE_MERAM || !FB_SH_MOBILE_MERAM | ||
5 | select BACKLIGHT_CLASS_DEVICE | 6 | select BACKLIGHT_CLASS_DEVICE |
7 | select BACKLIGHT_LCD_SUPPORT | ||
6 | select DRM_KMS_HELPER | 8 | select DRM_KMS_HELPER |
7 | select DRM_KMS_FB_HELPER | 9 | select DRM_KMS_FB_HELPER |
8 | select DRM_KMS_CMA_HELPER | 10 | select DRM_KMS_CMA_HELPER |