diff options
author | Christophe JAILLET | 2023-06-08 21:11:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-07-19 16:21:59 +0200 |
commit | df53f7a3dbf471ccbf063d7f0f6f96c5fe8e9886 (patch) | |
tree | 2927f2d003f16a0944d3668d3da21b6432254421 /arch/powerpc/tools/relocs_check.sh | |
parent | 3781d0e6c11b5905f5c278d84018d7bb08af7170 (diff) |
rtc: st-lpc: Release some resources in st_rtc_probe() in case of error
[ Upstream commit 06c6e1b01d9261f03629cefd1f3553503291e6cf ]
If an error occurs after clk_get(), the corresponding resources should be
released.
Use devm_clk_get() to fix it.
Fixes: b5b2bdfc2893 ("rtc: st: Add new driver for ST's LPC RTC")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/866af6adbc7454a7b4505eb6c28fbdc86ccff39e.1686251455.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/powerpc/tools/relocs_check.sh')
0 files changed, 0 insertions, 0 deletions