[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220621114658.10054-1-wupeng58@huawei.com>
Date: Tue, 21 Jun 2022 11:46:58 +0000
From: Peng Wu <wupeng58@...wei.com>
To: <matthias.bgg@...il.com>
CC: <linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>, <liwei391@...wei.com>,
<wupeng58@...wei.com>
Subject: [PATCH] soc: mediatek: fix missing clk_disable_unprepare() on err in svs_resume()
Fix the missing clk_disable_unprepare() before return
from svs_resume() in the error handling case.
Signed-off-by: Peng Wu <wupeng58@...wei.com>
Reported-by: Hulk Robot <hulkci@...wei.com>
---
drivers/soc/mediatek/mtk-svs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/soc/mediatek/mtk-svs.c b/drivers/soc/mediatek/mtk-svs.c
index 606a00a2e57d..1b5c297aaec5 100644
--- a/drivers/soc/mediatek/mtk-svs.c
+++ b/drivers/soc/mediatek/mtk-svs.c
@@ -1525,6 +1525,7 @@ static int svs_resume(struct device *dev)
ret = reset_control_deassert(svsp->rst);
if (ret) {
+ clk_disable_unprepare(svsp->main_clk);
dev_err(svsp->dev, "cannot deassert reset %d\n", ret);
return ret;
}
--
2.17.1
Powered by blists - more mailing lists