blob: ef70f12ae46a6bfe0ce247abd5cb9f44b9532d95 [file] [log] [blame]
From aa95abf6e2d56b0f9374fbe973321b676e5b6735 Mon Sep 17 00:00:00 2001
From: Laurent Pinchart <>
Date: Tue, 15 May 2018 18:57:36 +0300
Subject: [PATCH 1337/1795] 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
Fixes: 81c0e3dd8292 ("drm: rcar-du: Fix legacy DT to create LVDS encoder nodes")
Signed-off-by: Laurent Pinchart <>
Reviewed-by: Kieran Bingham <>
Signed-off-by: Dave Airlie <>
(cherry picked from commit dd856d924b2471bf28e7c60df881529525a1192c)
Signed-off-by: Simon Horman <>
Signed-off-by: Geert Uytterhoeven <>
drivers/gpu/drm/rcar-du/rcar_du_of.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 @@
struct of_device_id;
void __init rcar_du_of_init(const struct of_device_id *of_ids);
static inline void rcar_du_of_init(const struct of_device_id *of_ids) { }