diff options
author | Thierry Reding <treding@nvidia.com> | 2015-09-24 10:14:13 (GMT) |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2015-09-30 07:44:09 (GMT) |
commit | 7082947eff3b1ddbb5d320331c846a5a2fc88261 (patch) | |
tree | c2299fef576bf00ff824454c089ebc4b5f3dfc75 /drivers/gpu | |
parent | 48cf53f4343ae12ddc1c60dbe116161ecf7a2885 (diff) | |
download | linux-7082947eff3b1ddbb5d320331c846a5a2fc88261.tar.xz |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.c | 2 |
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 831d2e4..ae9e6b2 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) { |