diff mbox series

fbdev: omap2: Return clk_prepare_enable to transfer the error

Message ID 20240628032812.280895-1-nichen@iscas.ac.cn
State New
Headers show
Series fbdev: omap2: Return clk_prepare_enable to transfer the error | expand

Commit Message

Chen Ni June 28, 2024, 3:28 a.m. UTC
Return clk_prepare_enable() in order to transfer the error if it fails.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 drivers/video/fbdev/omap2/omapfb/dss/venc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/video/fbdev/omap2/omapfb/dss/venc.c b/drivers/video/fbdev/omap2/omapfb/dss/venc.c
index 0bd80d3b8f1b..d13ad00d353b 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/venc.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/venc.c
@@ -903,9 +903,7 @@  static int venc_runtime_resume(struct device *dev)
 	if (r < 0)
 		return r;
 
-	clk_prepare_enable(venc.tv_dac_clk);
-
-	return 0;
+	return clk_prepare_enable(venc.tv_dac_clk);
 }
 
 static const struct dev_pm_ops venc_pm_ops = {