]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/exynos: fix a warning message
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 25 Mar 2016 20:05:59 +0000 (23:05 +0300)
committerInki Dae <daeinki@gmail.com>
Tue, 12 Apr 2016 13:51:02 +0000 (22:51 +0900)
The "ret = regmap_write()" assignment was missing so this error message
is never printed.

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 890c9b1c02396f0278ca8c9a69c7fb3a44e91bf4..a0def0be6d650de02fad25fc3cf3248d89b8fce0 100644 (file)
@@ -129,7 +129,7 @@ static void mic_set_path(struct exynos_mic *mic, bool enable)
        } else
                val &= ~(MIC0_RGB_MUX | MIC0_I80_MUX | MIC0_ON_MUX);
 
-       regmap_write(mic->sysreg, DSD_CFG_MUX, val);
+       ret = regmap_write(mic->sysreg, DSD_CFG_MUX, val);
        if (ret)
                DRM_ERROR("mic: Failed to read system register\n");
 }