mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
The ssi_init() returns the platform_driver_register() directly without
checking its return value, if platform_driver_register() failed, the
ssi_pdriver is not unregistered.
Fix by unregister ssi_pdriver when the last platform_driver_register()
failed.
Fixes: 0fae198988 ("HSI: omap_ssi: built omap_ssi and omap_ssi_port into one module")
Signed-off-by: Yuan Can <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>