From: Dan Carpenter Date: Thu, 17 Mar 2016 10:32:15 +0000 (+0300) Subject: drm/exynos: mic: fix an error code X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=943491af107474a1aa7137528b982adebc8f3626;p=openwrt%2Fstaging%2Fblogic.git drm/exynos: mic: fix an error code We accidentally return success instead of a negative error code here. Signed-off-by: Dan Carpenter Signed-off-by: Inki Dae --- 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; }