Commit 7082947e authored by Thierry Reding's avatar Thierry Reding Committed by Inki Dae

drm/exynos: Suspend/resume is unused if !PM

Protect the suspend and resume callbacks with an #ifdef CONFIG_PM_SLEEP
guard to avoid "defined but not used" warnings.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 48cf53f4
...@@ -304,6 +304,7 @@ int exynos_atomic_commit(struct drm_device *dev, struct drm_atomic_state *state, ...@@ -304,6 +304,7 @@ int exynos_atomic_commit(struct drm_device *dev, struct drm_atomic_state *state,
return 0; return 0;
} }
#ifdef CONFIG_PM_SLEEP
static int exynos_drm_suspend(struct drm_device *dev, pm_message_t state) static int exynos_drm_suspend(struct drm_device *dev, pm_message_t state)
{ {
struct drm_connector *connector; struct drm_connector *connector;
...@@ -340,6 +341,7 @@ static int exynos_drm_resume(struct drm_device *dev) ...@@ -340,6 +341,7 @@ static int exynos_drm_resume(struct drm_device *dev)
return 0; return 0;
} }
#endif
static int exynos_drm_open(struct drm_device *dev, struct drm_file *file) static int exynos_drm_open(struct drm_device *dev, struct drm_file *file)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment