linux-stable/drivers/hsi
Yuan Can 61e80e7929 HSI: omap_ssi_core: Fix error handling in ssi_init()
[ Upstream commit 3ffa9f713c ]

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 <yuancan@huawei.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:41:28 +01:00
..
clients HSI changes for the 5.4 series 2019-09-22 12:02:21 -07:00
controllers HSI: omap_ssi_core: Fix error handling in ssi_init() 2023-01-18 11:41:28 +01:00
Kconfig
Makefile
hsi_boardinfo.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
hsi_core.c HSI: core: Fix return freed object in hsi_new_client 2022-01-27 09:19:41 +01:00
hsi_core.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00