Skip to content

Commit 7ee6cfe

Browse files
Chen Nihdeller
authored andcommitted
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 <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent b65bd78 commit 7ee6cfe

File tree

1 file changed

+1
-3
lines changed
  • drivers/video/fbdev/omap2/omapfb/dss

1 file changed

+1
-3
lines changed

drivers/video/fbdev/omap2/omapfb/dss/venc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,9 +903,7 @@ static int venc_runtime_resume(struct device *dev)
903903
if (r < 0)
904904
return r;
905905

906-
clk_prepare_enable(venc.tv_dac_clk);
907-
908-
return 0;
906+
return clk_prepare_enable(venc.tv_dac_clk);
909907
}
910908

911909
static const struct dev_pm_ops venc_pm_ops = {

0 commit comments

Comments
 (0)