summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2019-09-06 17:04:23 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2019-09-06 17:08:08 +0900
commite232aca0b617daa46cbac74c3502d61d05cf85a8 (patch)
tree8d1dfeea9f48a47bb49bbdef638116abbe5d6cc7
parent441f9c5a57107e51ab9f628845736128ef770035 (diff)
downloadlinux-exynos-e232aca0b617daa46cbac74c3502d61d05cf85a8.tar.gz
linux-exynos-e232aca0b617daa46cbac74c3502d61d05cf85a8.tar.bz2
linux-exynos-e232aca0b617daa46cbac74c3502d61d05cf85a8.zip
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 <m.szyprowski@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.c2
1 files changed, 0 insertions, 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,