Commit eebdc3b4 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Inki Dae

drm/exynos: Drop useless check from exynos_drm_{suspend,resume}

The virtual Exynos DRM device has no runtime PM enabled, so checking
for its runtime suspended state is useless.
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent e978de54
...@@ -152,7 +152,7 @@ static int exynos_drm_suspend(struct device *dev) ...@@ -152,7 +152,7 @@ static int exynos_drm_suspend(struct device *dev)
struct drm_device *drm_dev = dev_get_drvdata(dev); struct drm_device *drm_dev = dev_get_drvdata(dev);
struct exynos_drm_private *private; struct exynos_drm_private *private;
if (pm_runtime_suspended(dev) || !drm_dev) if (!drm_dev)
return 0; return 0;
private = drm_dev->dev_private; private = drm_dev->dev_private;
...@@ -174,7 +174,7 @@ static int exynos_drm_resume(struct device *dev) ...@@ -174,7 +174,7 @@ static int exynos_drm_resume(struct device *dev)
struct drm_device *drm_dev = dev_get_drvdata(dev); struct drm_device *drm_dev = dev_get_drvdata(dev);
struct exynos_drm_private *private; struct exynos_drm_private *private;
if (pm_runtime_suspended(dev) || !drm_dev) if (!drm_dev)
return 0; return 0;
private = drm_dev->dev_private; private = drm_dev->dev_private;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment