Christophe JAILLET f733a7bfe8 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:44:07 +02:00
..
2021-09-26 14:09:02 +02:00
2020-07-02 22:32:00 +02:00
2020-07-21 09:56:46 +02:00
2019-11-08 16:14:09 +01:00
2019-07-17 10:03:50 -07:00
2020-07-02 22:32:01 +02:00
2019-11-08 16:14:09 +01:00
2019-12-23 11:23:53 +01:00
2023-03-11 16:39:54 +01:00
2020-10-19 22:48:55 +02:00
2019-10-19 22:33:05 +02:00
2019-11-08 16:14:09 +01:00
2019-05-23 17:44:52 +02:00
2020-03-16 11:12:08 +01:00