diff options
Diffstat (limited to 'include/drm/drm_panel.h')
| -rw-r--r-- | include/drm/drm_panel.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h index 220d1e2b3db1..14ac240a1f64 100644 --- a/include/drm/drm_panel.h +++ b/include/drm/drm_panel.h @@ -24,8 +24,10 @@ #ifndef __DRM_PANEL_H__ #define __DRM_PANEL_H__ +#include <linux/errno.h> #include <linux/list.h> +struct device_node; struct drm_connector; struct drm_device; struct drm_panel; @@ -192,10 +194,10 @@ 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 -struct drm_panel *of_drm_find_panel(struct device_node *np); +#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(struct device_node *np) +static inline struct drm_panel *of_drm_find_panel(const struct device_node *np) { return NULL; } |