drm/omap: Depend on CONFIG_OF
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 31 Jul 2021 16:24:02 +0000 (19:24 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 7 Oct 2021 02:42:16 +0000 (05:42 +0300)
The driver accesses the drm_bridge.of_node field, which is present only
if CONFIG_OF is enabled. As all platforms using omapdrm are OF-based, we
can simply depend on CONFIG_OF.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/omapdrm/Kconfig

index d6e4df291d6f62575e45f751c42f375103d514e7..455e1a91f0e51bff14e02c49f1c311b114ba05cd 100644 (file)
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config DRM_OMAP
        tristate "OMAP DRM"
-       depends on DRM
+       depends on DRM && OF
        depends on ARCH_OMAP2PLUS || ARCH_MULTIPLATFORM
        select DRM_KMS_HELPER
        select VIDEOMODE_HELPERS