summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorHimanshu Bhavani <himanshu.bhavani@siliconsignals.io>2023-12-15 17:34:57 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-15 20:27:40 +0300
commitc084af69a8f425b8cb56479ff0ea11e48aba0c62 (patch)
tree47113a1ba0b9b33b0d8cbf038bbf792afaa1091a /drivers/usb/dwc3
parentf1fd91a0924b6bff91ca1287461fb8e3b3b61d92 (diff)
downloadlinux-c084af69a8f425b8cb56479ff0ea11e48aba0c62.tar.xz
usb: dwc3: imx8mp: Fix smatch warning
dwc3_imx8mp_pm_resume() warn: 'dwc3_imx->suspend_clk' from clk_prepare_enable() not released Signed-off-by: Himanshu Bhavani <himanshu.bhavani@siliconsignals.io> Link: https://lore.kernel.org/r/20231215143458.158810-1-himanshu.bhavani@siliconsignals.io Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/dwc3-imx8mp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-imx8mp.c b/drivers/usb/dwc3/dwc3-imx8mp.c
index a1e15f2fffdb..8ee448068503 100644
--- a/drivers/usb/dwc3/dwc3-imx8mp.c
+++ b/drivers/usb/dwc3/dwc3-imx8mp.c
@@ -363,8 +363,10 @@ static int __maybe_unused dwc3_imx8mp_pm_resume(struct device *dev)
}
ret = clk_prepare_enable(dwc3_imx->hsio_clk);
- if (ret)
+ if (ret) {
+ clk_disable_unprepare(dwc3_imx->suspend_clk);
return ret;
+ }
ret = dwc3_imx8mp_resume(dwc3_imx, PMSG_RESUME);