diff options
| author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2018-05-15 11:57:36 -0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2018-05-17 01:03:32 -0400 |
| commit | dd856d924b2471bf28e7c60df881529525a1192c (patch) | |
| tree | 8782854da38b7d3d2ef390450d487b6826ebfb2b /drivers | |
| parent | 548da31da9805645b1e8043da5081b9745545248 (diff) | |
drm: rcar-du: Fix rcar_du_of_init() stub
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 <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180515155736.3379-1-laurent.pinchart+renesas@ideasonboard.com
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/gpu/drm/rcar-du/rcar_du_of.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_of.h b/drivers/gpu/drm/rcar-du/rcar_du_of.h index c2e65a727e91..8dd3fbe96650 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_of.h +++ b/drivers/gpu/drm/rcar-du/rcar_du_of.h | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | struct of_device_id; | 12 | struct of_device_id; |
| 13 | 13 | ||
| 14 | #ifdef CONFIG_DRM_RCAR_LVDS | 14 | #if IS_ENABLED(CONFIG_DRM_RCAR_LVDS) |
| 15 | void __init rcar_du_of_init(const struct of_device_id *of_ids); | 15 | void __init rcar_du_of_init(const struct of_device_id *of_ids); |
| 16 | #else | 16 | #else |
| 17 | static inline void rcar_du_of_init(const struct of_device_id *of_ids) { } | 17 | static inline void rcar_du_of_init(const struct of_device_id *of_ids) { } |
