From: Arvind Yadav Date: Thu, 1 Jun 2017 07:14:50 +0000 (+0530) Subject: mfd: tc6393xb: Handle return value of clk_prepare_enable X-Git-Tag: v5.15~10940^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6678050a1d9ce971bbb343607d3920efe7131a7;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c index d16e71b..0c9f039 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)