summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-09-24 12:14:13 +0200
committerInki Dae <inki.dae@samsung.com>2015-09-30 16:44:09 +0900
commit7082947eff3b1ddbb5d320331c846a5a2fc88261 (patch)
treec2299fef576bf00ff824454c089ebc4b5f3dfc75
parent48cf53f4343ae12ddc1c60dbe116161ecf7a2885 (diff)
downloadlinux-7082947eff3b1ddbb5d320331c846a5a2fc88261.tar.gz
linux-7082947eff3b1ddbb5d320331c846a5a2fc88261.tar.bz2
linux-7082947eff3b1ddbb5d320331c846a5a2fc88261.zip
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: Thierry Reding <treding@nvidia.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index 831d2e4cacf9..ae9e6b2d3758 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -304,6 +304,7 @@ int exynos_atomic_commit(struct drm_device *dev, struct drm_atomic_state *state,
return 0;
}
+#ifdef CONFIG_PM_SLEEP
static int exynos_drm_suspend(struct drm_device *dev, pm_message_t state)
{
struct drm_connector *connector;
@@ -340,6 +341,7 @@ static int exynos_drm_resume(struct drm_device *dev)
return 0;
}
+#endif
static int exynos_drm_open(struct drm_device *dev, struct drm_file *file)
{