HSI: omap_ssi_core: fix unbalanced pm_runtime_disable()
PATCH 1/1 HSI: omap_ssi_core: fix unbalanced pm_runtime_disable()
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 <[email protected]>
--- drivers/hsi/controllers/omap_ssi_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hsi/controllers/omap_ssi_core.c +1 -1
@@ -538,9 +538,9 @@ static int ssi_probe(struct platform_device *pd)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; }
Signature · 1 line
2.25.1
Hi,
Quoted 6 lines · Yang Yingliang
In error label 'out1' path in
ssi_probe(), thepm_runtime_enable()has not been called yet, sopm_runtime_disable()is not needed.Fixes b209e047bc74 ("HSI: Introduce OMAP SSI driver")Signed-off-by Yang Yingliang <[email protected]>---
Thanks, queued.
-- Sebastian
Quoted 21 lines
drivers/hsi/controllers/omap_ssi_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/hsi/controllers/omap_ssi_core.c +1
-1@@ -538,9 +538,9 @@ static int ssi_probe(struct platform_device *pd)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; }Signature · 1 line
2.25.1