Skip to content

Commit

Permalink
drm: make of_drm_find_panel also depend on CONFIG_DRM_PANEL
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring authored and Sean Paul committed Apr 6, 2017
1 parent ce09d76 commit b61c8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/drm/drm_panel.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b61c8d5

Please sign in to comment.