drm/mediatek: add CONFIG_OF dependency
authorArnd Bergmann <arnd@arndb.de>
Wed, 10 Aug 2016 21:54:10 +0000 (23:54 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 11 Aug 2016 06:42:01 +0000 (08:42 +0200)
The mediatek DRM driver can be configured for compile testing with
CONFIG_OF disabled, but then fails to link:

drivers/gpu/built-in.o: In function `mtk_drm_bind':
analogix_dp_reg.c:(.text+0x52888): undefined reference to `of_find_device_by_node'
analogix_dp_reg.c:(.text+0x52930): undefined reference to `of_find_device_by_node'

This adds an explicit Kconfig dependency.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patchwork.kernel.org/patch/9120871/
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/mediatek/Kconfig

index 5c2163737691e2d19d813368bfd17ed8cff2c102..96ebf8bb6024b8fb43a0779981fccf0835f17893 100644 (file)
@@ -3,6 +3,7 @@ config DRM_MEDIATEK
        depends on DRM
        depends on ARCH_MEDIATEK || (ARM && COMPILE_TEST)
        depends on COMMON_CLK
+       depends on OF
        select DRM_GEM_CMA_HELPER
        select DRM_KMS_HELPER
        select DRM_MIPI_DSI