diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-03-17 13:32:15 +0300 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2016-04-12 22:50:59 +0900 |
commit | 6c9c15813b21ce75bc82db86db1163a34b772437 (patch) | |
tree | c85065bab834e0d5bcb6b01f5967f54936c9881f /drivers/gpu | |
parent | d42a114d88dcead9c3a41574aa0647d56d0a28f7 (diff) | |
download | op-kernel-dev-6c9c15813b21ce75bc82db86db1163a34b772437.zip op-kernel-dev-6c9c15813b21ce75bc82db86db1163a34b772437.tar.gz |
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')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_mic.c | 1 |
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 9869d70..890c9b1 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; } |