summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/exynos
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-03-17 13:32:15 +0300
committerInki Dae <daeinki@gmail.com>2016-04-12 22:50:59 +0900
commit6c9c15813b21ce75bc82db86db1163a34b772437 (patch)
treec85065bab834e0d5bcb6b01f5967f54936c9881f /drivers/gpu/drm/exynos
parentd42a114d88dcead9c3a41574aa0647d56d0a28f7 (diff)
downloadlinux-6c9c15813b21ce75bc82db86db1163a34b772437.tar.bz2
drm/exynos: mic: fix an error code
We accidentally return success instead of a negative error code here. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_mic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_mic.c b/drivers/gpu/drm/exynos/exynos_drm_mic.c
index 9869d70e9e54..890c9b1c0239 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_mic.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_mic.c
@@ -457,6 +457,7 @@ static int exynos_mic_probe(struct platform_device *pdev)
"samsung,disp-syscon");
if (IS_ERR(mic->sysreg)) {
DRM_ERROR("mic: Failed to get system register.\n");
+ ret = PTR_ERR(mic->sysreg);
goto err;
}