soc: ti: pm33xx: Fix some resource leak in the error handling paths of the probe...
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 25 Jan 2021 04:51:36 +0000 (20:51 -0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 25 Jan 2021 04:51:36 +0000 (20:51 -0800)
commit17ad4662595ea0c4fd7496b664523ef632e63349
treed609707d213a69a4519ffa1724b3fbd140863045
parenta88f66d4a8668e66afa8eb4099b4515e0729b52a
soc: ti: pm33xx: Fix some resource leak in the error handling paths of the probe function

'am33xx_pm_rtc_setup()' allocates some resources that must be freed on the
error. Commit 2152fbbd47c0 ("soc: ti: pm33xx: Simplify RTC usage to prepare
to drop platform data") has introduced the use of these resources but has
only updated the remove function.

Fix the error handling path of the probe function now.

Fixes: 2152fbbd47c0 ("soc: ti: pm33xx: Simplify RTC usage to prepare to drop platform data")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/soc/ti/pm33xx.c