Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9a32f75 authored by Yang Yingliang's avatar Yang Yingliang Committed by Greg Kroah-Hartman
Browse files

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: b209e047 ("HSI: Introduce OMAP SSI driver")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0f049375
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -536,9 +536,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;
}