mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 11:45:01 +07:00
dd856d924b
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: 81c0e3dd82
("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
21 lines
519 B
C
21 lines
519 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* rcar_du_of.h - Legacy DT bindings compatibility
|
|
*
|
|
* Copyright (C) 2018 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
*/
|
|
#ifndef __RCAR_DU_OF_H__
|
|
#define __RCAR_DU_OF_H__
|
|
|
|
#include <linux/init.h>
|
|
|
|
struct of_device_id;
|
|
|
|
#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) { }
|
|
#endif /* CONFIG_DRM_RCAR_LVDS */
|
|
|
|
#endif /* __RCAR_DU_OF_H__ */
|