drm/exynos: fix to build suspend/resume callback functions always 27/213527/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 6 Sep 2019 08:04:23 +0000 (17:04 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 6 Sep 2019 08:08:08 +0000 (17:08 +0900)
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 <m.szyprowski@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.c

index 571ea4b..80d12ef 100644 (file)
@@ -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,