drm/exynos: Drop useless check from exynos_drm_{suspend,resume}
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 11 Jun 2018 12:24:58 +0000 (14:24 +0200)
committerInki Dae <inki.dae@samsung.com>
Tue, 24 Jul 2018 07:19:02 +0000 (16:19 +0900)
The virtual Exynos DRM device has no runtime PM enabled, so checking
for its runtime suspended state is useless.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.c

index 7d0164aea36b4e480ec4e90bd3ebdd29ce535fb8..29fe6138e182f2e96851d743355610a1467520ae 100644 (file)
@@ -152,7 +152,7 @@ static int exynos_drm_suspend(struct device *dev)
        struct drm_device *drm_dev = dev_get_drvdata(dev);
        struct exynos_drm_private *private;
 
-       if (pm_runtime_suspended(dev) || !drm_dev)
+       if (!drm_dev)
                return 0;
 
        private = drm_dev->dev_private;
@@ -174,7 +174,7 @@ static int exynos_drm_resume(struct device *dev)
        struct drm_device *drm_dev = dev_get_drvdata(dev);
        struct exynos_drm_private *private;
 
-       if (pm_runtime_suspended(dev) || !drm_dev)
+       if (!drm_dev)
                return 0;
 
        private = drm_dev->dev_private;