Christophe JAILLET 06a9031509 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>
2023-08-11 11:45:13 +02:00
..
2018-07-26 15:08:53 +02:00
2021-03-04 09:39:44 +01:00
2018-04-10 10:22:27 -07:00
2018-05-21 22:34:38 +02:00
2018-03-27 10:45:05 +02:00
2018-05-17 22:23:14 +02:00
2018-03-17 14:20:56 +01:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:08:00 +02:00
2017-09-01 01:10:11 +02:00
2018-03-17 14:20:50 +01:00
2018-05-03 22:08:00 +02:00
2018-05-18 09:38:22 +02:00
2018-03-17 14:20:56 +01:00
2018-05-03 22:08:00 +02:00
2018-05-22 09:47:17 +02:00
2018-05-03 22:08:00 +02:00
2023-03-11 16:31:48 +01:00
2017-08-22 12:05:21 +02:00
2017-09-05 09:55:02 +02:00
2018-05-17 22:43:22 +02:00
2018-05-03 22:08:00 +02:00
2018-07-12 20:16:10 +02:00
2018-05-17 22:54:21 +02:00
2018-05-03 22:08:00 +02:00