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: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
This commit is contained in:
Marek Szyprowski 2018-06-11 14:24:58 +02:00 коммит произвёл Inki Dae
Родитель e978de5495
Коммит eebdc3b49a
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;