summaryrefslogtreecommitdiff
path: root/tools/laptop
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2022-12-31 15:20:29 +0100
committerWim Van Sebroeck <wim@linux-watchdog.org>2023-02-12 15:32:47 +0100
commite0912ea8714deb598c7763ec60c9ba83b157acf7 (patch)
tree4af87bba0c4d9cfdf6beec5d30cde01ac2e2a52b /tools/laptop
parent7f7f8ad0725cf31af68aaccccee6d24b8c886679 (diff)
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>
Diffstat (limited to 'tools/laptop')
0 files changed, 0 insertions, 0 deletions