Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: make of_drm_find_panel also depend on CONFIG_DRM_PANEL

For drm_of_find_panel_or_bridge() added in the next commit, an empty
version of of_drm_find_panel is needed for !CONFIG_DRM_PANEL.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Sean Paul <seanpaul@chromium.org>

authored by

Rob Herring and committed by
Sean Paul
b61c8d5d ce09d766

+1 -1
+1 -1
include/drm/drm_panel.h
··· 192 192 int drm_panel_attach(struct drm_panel *panel, struct drm_connector *connector); 193 193 int drm_panel_detach(struct drm_panel *panel); 194 194 195 - #ifdef CONFIG_OF 195 + #if defined(CONFIG_OF) && defined(CONFIG_DRM_PANEL) 196 196 struct drm_panel *of_drm_find_panel(const struct device_node *np); 197 197 #else 198 198 static inline struct drm_panel *of_drm_find_panel(const struct device_node *np)