drm/stm: fix CONFIG_FB dependency
authorArnd Bergmann <arnd@arndb.de>
Thu, 7 Mar 2019 15:53:14 +0000 (16:53 +0100)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Mon, 11 Mar 2019 14:40:29 +0000 (15:40 +0100)
commita34ced4541cc453de520a0db47757f4b99983bf6
tree7c73bb0eda9731b2515cbcadd0045e10dafc407c
parenteea9b97b4504607a0805c71b20d2c3e93c8711a7
drm/stm: fix CONFIG_FB dependency

The DRM_STM driver can be built independently of the framebuffer
layer, but it causes a Kconfig warning:

WARNING: unmet direct dependencies detected for FB_PROVIDE_GET_FB_UNMAPPED_AREA
  Depends on [n]: HAS_IOMEM [=y] && FB [=n]
  Selected by [y]:
  - DRM_STM [=y] && HAS_IOMEM [=y] && DRM [=y] && (ARCH_STM32 [=n] || ARCH_MULTIPLATFORM [=y])

Selecting FB_PROVIDE_GET_FB_UNMAPPED_AREA actually has no effect
if CONFIG_FB is disabled, so we can make it a conditional 'select'
instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190307155323.2949975-1-arnd@arndb.de
drivers/gpu/drm/stm/Kconfig