Skip to content

Commit

Permalink
drm/exynos: mic: fix an error code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Inki Dae committed Apr 12, 2016
1 parent d42a114 commit 6c9c158
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/exynos/exynos_drm_mic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6c9c158

Please sign in to comment.