Commit 7ee6cfe6 authored by Chen Ni's avatar Chen Ni Committed by Helge Deller

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: default avatarChen Ni <nichen@iscas.ac.cn>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent b65bd787
...@@ -903,9 +903,7 @@ static int venc_runtime_resume(struct device *dev) ...@@ -903,9 +903,7 @@ static int venc_runtime_resume(struct device *dev)
if (r < 0) if (r < 0)
return r; return r;
clk_prepare_enable(venc.tv_dac_clk); return clk_prepare_enable(venc.tv_dac_clk);
return 0;
} }
static const struct dev_pm_ops venc_pm_ops = { static const struct dev_pm_ops venc_pm_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment