drm: rcar-du: Fix rcar_du_of_init() stub
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 15 May 2018 15:57:36 +0000 (18:57 +0300)
committerDave Airlie <airlied@redhat.com>
Thu, 17 May 2018 05:03:32 +0000 (15:03 +1000)
commitdd856d924b2471bf28e7c60df881529525a1192c
tree8782854da38b7d3d2ef390450d487b6826ebfb2b
parent548da31da9805645b1e8043da5081b9745545248
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
drivers/gpu/drm/rcar-du/rcar_du_of.h