thermal/drivers/rockchip: Simplify clock logic
authorSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 8 Mar 2023 11:22:48 +0000 (12:22 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 7 Apr 2023 08:31:32 +0000 (10:31 +0200)
commit2f6916f12c0e46ecd4c2b793a014132140730560
tree2d0e8b262d1935049f8e1e4f6487caf837d8a1b6
parentf1d2427cb458fd8ecb709c27f43088d6e250a7aa
thermal/drivers/rockchip: Simplify clock logic

By using devm_clk_get_enabled() the clock acquisition and
enabling can be done in one step with automatic error
handling.

Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230308112253.15659-3-sebastian.reichel@collabora.com
drivers/thermal/rockchip_thermal.c