Searched hist:e0912ea8714deb598c7763ec60c9ba83b157acf7 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/watchdog/ |
H A D | pic32-dmt.c | diff e0912ea8714deb598c7763ec60c9ba83b157acf7 Sat Dec 31 08:20:29 CST 2022 Christophe JAILLET <christophe.jaillet@wanadoo.fr> watchdog: pic32-dmt: 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/f9a4dcfc6d31bd9c1417e2d97a40cc2c1dbc6f30.1672496405.git.christophe.jaillet@wanadoo.fr Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
|