mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 01:09:38 -05:00
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: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
842086d2b5
commit
b6678050a1
1 changed files with 3 additions and 1 deletions
|
@ -797,7 +797,9 @@ static int tc6393xb_resume(struct platform_device *dev)
|
|||
int ret;
|
||||
int i;
|
||||
|
||||
clk_prepare_enable(tc6393xb->clk);
|
||||
ret = clk_prepare_enable(tc6393xb->clk);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = tcpd->resume(dev);
|
||||
if (ret)
|
||||
|
|
Loading…
Add table
Reference in a new issue