mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
HSI: omap_ssi: fix module unloading
Removal of ssi controller debugfs directory must happen after the clients have been removed from it. Acked-by: Pavel Machek <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
parent
73e6ce09c0
commit
f704e1103e
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue