hsi: omap_ssi: remove debugfs on port creation failure
PATCH 1/1 hsi: omap_ssi: remove debugfs on port creation failure
ssi_probe() creates the controller debugfs tree before creating the SSI port child devices. If a port device cannot be created, the error path removes any children and tears down the controller, but leaves the debugfs tree behind.
Remove the controller debugfs tree on the port creation failure path, matching the normal remove path.
--- drivers/hsi/controllers/omap_ssi_core.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/hsi/controllers/omap_ssi_core.c +3 -0
@@ -529,6 +529,9 @@ static int ssi_probe(struct platform_device *pd)return err; out3:device_for_each_child (&pd->dev,NULL , ssi_remove_ports); +#ifdef CONFIG_DEBUG_FS +ssi_debug_remove_ctrl (ssi); +#endif out2:ssi_remove_controller (ssi);pm_runtime_disable (&pd->dev);
Signature · 1 line
2.50.1 (Apple Git-155)
Sebastian Reichel
AppliedQuoted 9 lines · Pengpeng Hou
ssi_probe()creates the controller debugfs tree before creating the SSI port child devices. If a port device cannot be created, the error path removes any children and tears down the controller, but leaves the debugfs tree behind.Remove the controller debugfs tree on the port creation failure path, matching the normal remove path.
[...]
Applied, thanks!
[1/1] hsi: omap_ssi: remove debugfs on port creation failure
commit: 760318e2e69857214314e94ac477219f0c89106b
Best regards,
Signature · 1 line
Sebastian Reichel <[email protected]>