[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240628032812.280895-1-nichen@iscas.ac.cn>
Date: Fri, 28 Jun 2024 11:28:12 +0800
From: Chen Ni <nichen@...as.ac.cn>
To: deller@....de,
laurent.pinchart@...asonboard.com,
kuninori.morimoto.gx@...esas.com
Cc: linux-omap@...r.kernel.org,
linux-fbdev@...r.kernel.org,
dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org,
Chen Ni <nichen@...as.ac.cn>
Subject: [PATCH] fbdev: omap2: Return clk_prepare_enable to transfer the error
Return clk_prepare_enable() in order to transfer the error if it fails.
Signed-off-by: Chen Ni <nichen@...as.ac.cn>
---
drivers/video/fbdev/omap2/omapfb/dss/venc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
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 = {
--
2.25.1
Powered by blists - more mailing lists