Commit b6678050 authored by Arvind Yadav's avatar Arvind Yadav Committed by Lee Jones

mfd: tc6393xb: Handle return value of clk_prepare_enable

clk_prepare_enable() can fail here and we must check its return value.
Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 842086d2
...@@ -797,7 +797,9 @@ static int tc6393xb_resume(struct platform_device *dev) ...@@ -797,7 +797,9 @@ static int tc6393xb_resume(struct platform_device *dev)
int ret; int ret;
int i; int i;
clk_prepare_enable(tc6393xb->clk); ret = clk_prepare_enable(tc6393xb->clk);
if (ret)
return ret;
ret = tcpd->resume(dev); ret = tcpd->resume(dev);
if (ret) if (ret)
......
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