From e232aca0b617daa46cbac74c3502d61d05cf85a8 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Fri, 6 Sep 2019 17:04:23 +0900 Subject: drm/exynos: fix to build suspend/resume callback functions always When CONFIG_SUSPEND is disabled, conditional build for suspend and resume callbcak functions causes build error after the commit ae1c75eeaa19 ("drm/exynos: Suspend/resume display pipeline as early/late as possible"). So fix to build the callbacks always like mainline applied version, the commit dc684af6fc8d. Change-Id: I226ef3279df0b3ed646f5c532a0093b34e877723 CC: Marek Szyprowski Signed-off-by: Seung-Woo Kim --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index 571ea4b0e392..80d12efdc39a 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -171,7 +171,6 @@ static struct drm_driver exynos_drm_driver = { .minor = DRIVER_MINOR, }; -#ifdef CONFIG_PM_SLEEP static int exynos_drm_suspend(struct device *dev) { struct drm_device *drm_dev = dev_get_drvdata(dev); @@ -207,7 +206,6 @@ static void exynos_drm_resume(struct device *dev) exynos_drm_fbdev_resume(drm_dev); drm_kms_helper_poll_enable(drm_dev); } -#endif static const struct dev_pm_ops exynos_drm_pm_ops = { .prepare = exynos_drm_suspend, -- cgit v1.2.3