PM / devfreq: sun8i-a33-mbus: Simplify by using more devm functions
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Tue, 13 May 2025 20:39:02 +0000 (22:39 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 14 Jul 2025 11:04:17 +0000 (20:04 +0900)
commitc3bc361393b289df3499f5a87276367c71fae7c6
tree25b69dc5272525676839407cd8c0bc6324988747
parent78c5845fbbf6aaeb9959c5fbaee5cc53ef5f38c2
PM / devfreq: sun8i-a33-mbus: Simplify by using more devm functions

Use devm allocators for enabling the bus clock and
clk_rate_exclusive_get(). This simplifies error handling and the remove
callback.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Tested-by: Corentin LABBE <clabbe.montjoie@gmail.com>
Link: https://patchwork.kernel.org/project/linux-pm/patch/20250513203908.205060-2-u.kleine-koenig@baylibre.com/
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/sun8i-a33-mbus.c