Skip to content

Commit f5181c3

Browse files
Yang Yingliangsre
authored andcommitted
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: b209e04 ("HSI: Introduce OMAP SSI driver") Signed-off-by: Yang Yingliang <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 913a144 commit f5181c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hsi/controllers/omap_ssi_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,9 +536,9 @@ static int ssi_probe(struct platform_device *pd)
536536
device_for_each_child(&pd->dev, NULL, ssi_remove_ports);
537537
out2:
538538
ssi_remove_controller(ssi);
539+
pm_runtime_disable(&pd->dev);
539540
out1:
540541
platform_set_drvdata(pd, NULL);
541-
pm_runtime_disable(&pd->dev);
542542

543543
return err;
544544
}

0 commit comments

Comments
 (0)