drm/exynos: return return value of exynos_crtc->enable_vblank
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 16 Jul 2015 15:23:39 +0000 (12:23 -0300)
committerInki Dae <inki.dae@samsung.com>
Sun, 16 Aug 2015 01:23:35 +0000 (10:23 +0900)
Instead of blindly ignore the return value of enable_vblank return it
to the upper DRM layer for error handling.

Suggested-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_crtc.c

index fb213502082d367766619dccf86e5a5fda3718a3..b13c9492291b6ed5a529de2bf30c95a01da817a9 100644 (file)
@@ -177,7 +177,7 @@ int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int pipe)
                return -EPERM;
 
        if (exynos_crtc->ops->enable_vblank)
-               exynos_crtc->ops->enable_vblank(exynos_crtc);
+               return exynos_crtc->ops->enable_vblank(exynos_crtc);
 
        return 0;
 }