From: Marek Szyprowski Date: Tue, 12 Dec 2017 12:01:15 +0000 (+0100) Subject: drm/exynos: Fix error value in exynos_drm_crtc_get_by_type() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e9497dc2f3e0ead4004231b8d282cb4ecdd36463;p=linux.git 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 Signed-off-by: Marek Szyprowski Signed-off-by: Inki Dae --- diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c index dc01342e759a0..eea90251808fa 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, if (to_exynos_crtc(crtc)->type == out_type) return to_exynos_crtc(crtc); - return ERR_PTR(-EPERM); + return ERR_PTR(-ENODEV); } int exynos_drm_set_possible_crtcs(struct drm_encoder *encoder,