MLK-22424 drm/imx: dpu: crc: Fix return value for dpu_crtc_set_crc_source()
authorLiu Ying <victor.liu@nxp.com>
Mon, 12 Aug 2019 02:23:37 +0000 (10:23 +0800)
committerLiu Ying <victor.liu@nxp.com>
Tue, 13 Aug 2019 05:52:50 +0000 (13:52 +0800)
In cases where error happens in dpu_crtc_set_crc_source(), we should
return proper error code from it.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
drivers/gpu/drm/imx/dpu/dpu-crc.c

index 042c4f5..7be773a 100644 (file)
@@ -177,7 +177,7 @@ unlock:
        drm_modeset_drop_locks(&ctx);
        drm_modeset_acquire_fini(&ctx);
 
-       return 0;
+       return ret;
 }
 
 irqreturn_t dpu_crc_valid_irq_threaded_handler(int irq, void *dev_id)