]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/exynos: mic: fix an error code
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 17 Mar 2016 10:32:15 +0000 (13:32 +0300)
committerInki Dae <daeinki@gmail.com>
Tue, 12 Apr 2016 13:50:59 +0000 (22:50 +0900)
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>
drivers/gpu/drm/exynos/exynos_drm_mic.c

index 9869d70e9e54af32abb775dc0e17f0c1da83999b..890c9b1c02396f0278ca8c9a69c7fb3a44e91bf4 100644 (file)
@@ -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;
        }