]> Git Repo - linux.git/commitdiff
drm: rcar-du: Fix rcar_du_of_init() stub
authorLaurent Pinchart <[email protected]>
Tue, 15 May 2018 15:57:36 +0000 (18:57 +0300)
committerDave Airlie <[email protected]>
Thu, 17 May 2018 05:03:32 +0000 (15:03 +1000)
The rcar_du_of_init() function is supposed to be defined as a stub when
CONFIG_DRM_RCAR_LVDS is disabled as the rcar_du_of.c file isn't compiled
in that case. However, a bug in the configuration option check makes it
a stub when CONFIG_DRM_RCAR_LVDS=m as well, which prevents legacy DTs
from being fixed at boot time. Fix the configuration option check by
using IS_ENABLED.

Fixes: 81c0e3dd8292 ("drm: rcar-du: Fix legacy DT to create LVDS encoder nodes")
Signed-off-by: Laurent Pinchart <[email protected]>
Reviewed-by: Kieran Bingham <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/rcar-du/rcar_du_of.h

index c2e65a727e91e9bb3c4a58eab7a7dcf75b2afdde..8dd3fbe96650db99f0767dafc8ec4519dd3e8e96 100644 (file)
@@ -11,7 +11,7 @@
 
 struct of_device_id;
 
 
 struct of_device_id;
 
-#ifdef CONFIG_DRM_RCAR_LVDS
+#if IS_ENABLED(CONFIG_DRM_RCAR_LVDS)
 void __init rcar_du_of_init(const struct of_device_id *of_ids);
 #else
 static inline void rcar_du_of_init(const struct of_device_id *of_ids) { }
 void __init rcar_du_of_init(const struct of_device_id *of_ids);
 #else
 static inline void rcar_du_of_init(const struct of_device_id *of_ids) { }
This page took 0.067713 seconds and 4 git commands to generate.