Lars-Peter Clausen c7a639dac8 rtc: jz4740: Make sure clock provider gets removed
The jz4740 RTC driver registers a clock provider, but never removes it.
This leaves a stale clock provider behind that references freed clocks when
the device is unbound.

Use the managed `devm_of_clk_add_hw_provider()` instead of
`of_clk_add_hw_provider()` to make sure the provider gets automatically
removed on unbind.

Fixes: 5ddfa148de8c ("rtc: jz4740: Register clock provider for the CLK32K pin")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20230409162544.16155-1-lars@metafoo.de
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-04-28 08:07:23 +02:00
..
2022-06-24 21:24:02 +02:00
2021-08-10 23:21:46 +02:00
2023-03-03 09:15:50 -08:00
2022-06-24 21:24:02 +02:00
2023-02-24 00:02:30 +01:00
2022-06-24 21:24:02 +02:00
2021-12-02 23:23:38 +01:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2021-05-25 00:41:25 +02:00
2022-06-24 21:24:02 +02:00
2021-10-01 23:28:28 +02:00
2022-06-24 21:24:02 +02:00
2022-04-19 16:27:05 +02:00
2023-02-22 12:31:05 +01:00
2023-02-22 12:31:38 +01:00
2022-06-24 21:24:02 +02:00
2021-09-25 23:26:37 +02:00
2022-06-24 21:24:02 +02:00