Christophe JAILLET 25bcfaad5e rtc: mxc: Use devm_clk_get_enabled() helper
The devm_clk_get_enabled() helper:
   - calls devm_clk_get()
   - calls clk_prepare_enable() and registers what is needed in order to
     call clk_disable_unprepare() when needed, as a managed resource.

This simplifies the code, the error handling paths and avoid the need of
a dedicated function used with devm_add_action_or_reset().

Based on my test with allyesconfig, this reduces the .o size from:
   text	   data	    bss	    dec	    hex	filename
   6705	   1968	      0	   8673	   21e1	drivers/rtc/rtc-mxc.o
down to:
   6212	   1968	      0	   8180	   1ff4	drivers/rtc/rtc-mxc.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1b5ad1877304b01ddbba73ca615274a52f781aa2.1660582728.git.christophe.jaillet@wanadoo.fr
2022-08-23 22:33:38 +02:00
..
2022-06-24 21:44:53 +02:00
2022-06-24 21:24:02 +02:00
2021-08-10 23:21:46 +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
2022-06-24 21:24:02 +02:00
2021-12-02 23:23:38 +01:00
2022-06-24 21:24:02 +02:00
2021-09-25 23:22:28 +02:00
2022-06-24 21:24:02 +02:00
2022-03-23 19:58: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-04-29 23:03:26 +02:00
2021-05-25 00:41:25 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2021-10-01 23:28:28 +02:00
2021-01-16 23:19:26 +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
2022-04-19 16:27:05 +02:00
2021-10-18 17:20:50 +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
2022-05-25 01:24:21 +02:00
2021-10-23 23:57:23 +02:00
2021-09-25 23:26:37 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-08-09 00:56:41 +02:00
2020-12-03 23:43:23 +01:00
2022-06-24 21:24:02 +02:00