diff mbox

[v3,1/5] drm: make of_drm_find_panel also depend on CONFIG_DRM_PANEL

Message ID 20170322132608.17353-2-robh@kernel.org (mailing list archive)
State New, archived
Headers show

Commit Message

Rob Herring (Arm) March 22, 2017, 1:26 p.m. UTC
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>
---
v3:
- rebase to v4.11-rc2

 include/drm/drm_panel.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.10.1

Comments

Eric Anholt March 22, 2017, 4:11 p.m. UTC | #1
Rob Herring <robh@kernel.org> writes:

> 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>

Makes sense.

Reviewed-by: Eric Anholt <eric@anholt.net>
diff mbox

Patch

diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h
index 4b76cf2d5a7b..1b364b0100f4 100644
--- a/include/drm/drm_panel.h
+++ b/include/drm/drm_panel.h
@@ -192,7 +192,7 @@  void drm_panel_remove(struct drm_panel *panel);
 int drm_panel_attach(struct drm_panel *panel, struct drm_connector *connector);
 int drm_panel_detach(struct drm_panel *panel);

-#ifdef CONFIG_OF
+#if defined(CONFIG_OF) && defined(CONFIG_DRM_PANEL)
 struct drm_panel *of_drm_find_panel(const struct device_node *np);
 #else
 static inline struct drm_panel *of_drm_find_panel(const struct device_node *np)