pwm: lpc18xx-sct: Simplify using devm_clk_get_enabled()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 18 Jul 2023 14:41:28 +0000 (16:41 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 28 Jul 2023 07:38:04 +0000 (09:38 +0200)
commit4aed0ccd6868e6ec71f0cf26fc755dbd67447072
treea75b85538a0f60998dc46dfa8f1d277d27e44f46
parent28a1dadc49e2902d0a7a2e8c699a15f93b1b6f40
pwm: lpc18xx-sct: Simplify using devm_clk_get_enabled()

With devm_clk_get_enabled() the call to clk_disable_unprepare() can be
dropped from the error path and the remove callback.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-lpc18xx-sct.c