Christophe JAILLET 999ff7fe49 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-07-27 08:37:22 +02:00
..
2021-09-26 14:07:14 +02:00
2019-05-09 14:46:33 -07:00
2019-07-17 10:03:50 -07:00
2019-07-17 10:03:50 -07:00
2019-04-04 10:06:54 +02:00
2023-03-11 16:43:58 +01:00
2019-04-04 10:07:10 +02:00
2019-07-17 10:03:50 -07:00
2019-05-09 14:46:33 -07:00
2019-05-23 17:44:52 +02:00
2019-04-29 15:53:43 +02:00
2019-05-08 22:14:36 +02:00