Christophe JAILLET 7f7f8ad072 watchdog: pic32-wdt: 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 and avoids the need of a dedicated function used
with devm_add_action_or_reset().

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/4335b4201b535ebc749a98bad0b99e3cb5317c39.1672496563.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
2023-02-12 15:32:47 +01:00
..
2022-12-13 15:22:14 -08:00
2023-02-03 11:35:42 -08:00
2023-01-12 17:02:20 -06:00
2022-12-19 07:13:33 -06:00
2023-01-12 05:56:06 -06:00
2023-02-03 10:25:41 -08:00
2022-12-30 10:49:52 +08:00
2023-01-27 14:05:38 +01:00
2023-02-03 10:09:55 -08:00
2023-01-18 14:44:32 -08:00
2022-12-13 13:09:38 -08:00
2022-12-11 21:25:58 +01:00
2023-01-29 11:06:47 -08:00
2023-01-27 16:09:12 -08:00
2022-12-21 09:19:24 -08:00
2023-02-03 11:35:42 -08:00
2023-01-13 17:32:22 -06:00
2022-12-13 15:47:48 -08:00
2022-12-21 09:41:28 -08:00
2023-01-06 13:12:42 -08:00
2023-01-31 11:39:08 -08:00
2023-01-10 23:09:09 +01:00
2022-12-19 08:47:33 -06:00
2022-12-12 10:17:08 -08:00
2023-02-05 11:43:00 -08:00
2022-12-16 03:49:24 -08:00
2023-01-12 17:02:20 -06:00