Skip to content
Commit 17ad4662 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Santosh Shilimkar
Browse files

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 2152fbbd ("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: 2152fbbd ("soc: ti: pm33xx: Simplify RTC usage to prepare to drop platform data")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
parent a88f66d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment