diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-11-01 11:41:18 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-18 09:26:26 +0100 |
commit | cbe3f453ba583661e9a3c84e12e089d9b43976c3 (patch) | |
tree | 911baf18d7da47902300d42fbe84828b3aba2ab3 /drivers/hsi | |
parent | cac40c52ffe7aaf38ef00af8fea4b73c78ebce39 (diff) | |
download | linux-stable-cbe3f453ba583661e9a3c84e12e089d9b43976c3.tar.gz linux-stable-cbe3f453ba583661e9a3c84e12e089d9b43976c3.tar.bz2 linux-stable-cbe3f453ba583661e9a3c84e12e089d9b43976c3.zip |
HSI: omap_ssi_core: fix unbalanced pm_runtime_disable()
[ Upstream commit f5181c35ed7ba0ceb6e42872aad1334d994b0175 ]
In error label 'out1' path in ssi_probe(), the pm_runtime_enable()
has not been called yet, so pm_runtime_disable() is not needed.
Fixes: b209e047bc74 ("HSI: Introduce OMAP SSI driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hsi')
-rw-r--r-- | drivers/hsi/controllers/omap_ssi_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hsi/controllers/omap_ssi_core.c b/drivers/hsi/controllers/omap_ssi_core.c index 6e9d88d9d471..281fb9b1f219 100644 --- a/drivers/hsi/controllers/omap_ssi_core.c +++ b/drivers/hsi/controllers/omap_ssi_core.c @@ -572,9 +572,9 @@ out3: device_for_each_child(&pd->dev, NULL, ssi_remove_ports); out2: ssi_remove_controller(ssi); + pm_runtime_disable(&pd->dev); out1: platform_set_drvdata(pd, NULL); - pm_runtime_disable(&pd->dev); return err; } |