summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/omap2
diff options
context:
space:
mode:
authorChen Ni <nichen@iscas.ac.cn>2024-06-28 05:28:12 +0200
committerHelge Deller <deller@gmx.de>2024-06-28 09:10:02 +0200
commit7ee6cfe6d9cf53df926386801a006cc9c22e8a36 (patch)
tree04fa763b8e0ff783d43d8e40df7e302b1812b88c /drivers/video/fbdev/omap2
parentfbdev: mmp: Constify struct mmp_overlay_ops (diff)
downloadlinux-7ee6cfe6d9cf53df926386801a006cc9c22e8a36.tar.xz
linux-7ee6cfe6d9cf53df926386801a006cc9c22e8a36.zip
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@iscas.ac.cn> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video/fbdev/omap2')
-rw-r--r--drivers/video/fbdev/omap2/omapfb/dss/venc.c4
1 files changed, 1 insertions, 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 = {