提交 eebdc3b4 编写于 作者: M Marek Szyprowski 提交者: 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: NMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: NInki Dae <inki.dae@samsung.com>
上级 e978de54
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册