diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-06-01 12:44:50 +0530 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2017-07-06 08:29:12 +0100 |
commit | b6678050a1d9ce971bbb343607d3920efe7131a7 (patch) | |
tree | d420a824d026e20280503e9d9c929f2753422ef8 /drivers/mfd | |
parent | 842086d2b5a6cec23d598edffb5137c72b265c50 (diff) | |
download | linux-b6678050a1d9ce971bbb343607d3920efe7131a7.tar.bz2 |
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/tc6393xb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c index d16e71bd9482..0c9f0390e891 100644 --- a/drivers/mfd/tc6393xb.c +++ b/drivers/mfd/tc6393xb.c @@ -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) |