Skip to contentSkip to conversation

mfd: tc6393xb: Add missing clk_disable_unprepare() in tc6393xb_resume()

PATCH New Yuan Can 1 participant 1 message Jul 4, 2022 Multifunction devices (MFD)

lore
Share & tools
lore

Yuan Can

author
#0 lore raw

PATCH 1/1 mfd: tc6393xb: Add missing clk_disable_unprepare() in tc6393xb_resume()

Add clk_disable_unprepare() on error path in tc6393xb_resume().

---
 drivers/mfd/tc6393xb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/mfd/tc6393xb.c +3 -1
index 0be5731685b4..1f1aa76292d2 100644
@@ -850,8 +850,10 @@ static int tc6393xb_resume(struct platform_device *dev)
 		return ret;
 
 	ret = tcpd->resume(dev);
-	if (ret)
+	if (ret) {
+		clk_disable_unprepare(tc6393xb->clk);
 		return ret;
+	}
 
 	if (!tcpd->resume_restore)
 		return 0;
Signature · 1 line
2.17.1