aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2017-12-12 07:01:15 -0500
committerInki Dae <inki.dae@samsung.com>2018-05-24 03:47:39 -0400
commite9497dc2f3e0ead4004231b8d282cb4ecdd36463 (patch)
tree9e2545758cf0a96b0764699b0d3960c6a6f1d820
parentecf81ed98c8df8c6d397f4e044af175481b5b831 (diff)
drm/exynos: Fix error value in exynos_drm_crtc_get_by_type()
EPERM is not the correct error value when the driver is not able to get its resources. Change it to ENODEV. Reported-by: Russell King - ARM Linux <linux@armlinux.org.uk> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
index dc01342e759a..eea90251808f 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
@@ -228,7 +228,7 @@ struct exynos_drm_crtc *exynos_drm_crtc_get_by_type(struct drm_device *drm_dev,
228 if (to_exynos_crtc(crtc)->type == out_type) 228 if (to_exynos_crtc(crtc)->type == out_type)
229 return to_exynos_crtc(crtc); 229 return to_exynos_crtc(crtc);
230 230
231 return ERR_PTR(-EPERM); 231 return ERR_PTR(-ENODEV);
232} 232}
233 233
234int exynos_drm_set_possible_crtcs(struct drm_encoder *encoder, 234int exynos_drm_set_possible_crtcs(struct drm_encoder *encoder,