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

Commit f704e110 authored by Sebastian Reichel's avatar Sebastian Reichel
Browse files

HSI: omap_ssi: fix module unloading



Removal of ssi controller debugfs directory must
happen after the clients have been removed from
it.

Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 73e6ce09
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -526,6 +526,9 @@ static int __exit ssi_remove(struct platform_device *pd)
{
	struct hsi_controller *ssi = platform_get_drvdata(pd);

	/* cleanup of of_platform_populate() call */
	device_for_each_child(&pd->dev, NULL, ssi_remove_ports);

#ifdef CONFIG_DEBUG_FS
	ssi_debug_remove_ctrl(ssi);
#endif
@@ -534,9 +537,6 @@ static int __exit ssi_remove(struct platform_device *pd)

	pm_runtime_disable(&pd->dev);

	/* cleanup of of_platform_populate() call */
	device_for_each_child(&pd->dev, NULL, ssi_remove_ports);

	return 0;
}