ASOC: rockchip: Use helper function devm_clk_get_enabled()
authorPei Xiao <xiaopei01@kylinos.cn>
Fri, 6 Jun 2025 09:18:22 +0000 (17:18 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 8 Jun 2025 22:34:24 +0000 (23:34 +0100)
commit03b778d1994827ea5cc971dbdfbb457bbb7bfa5d
treec6cd9bf7fa14ef92cb572c29d4aac109b447bcb0
parent5dc302d00807b8916992dd25a7a22b78d07dcd03
ASOC: rockchip: Use helper function devm_clk_get_enabled()

Since commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared
and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be
replaced by devm_clk_get_enabled() when driver enables the clocks for the
whole lifetime of the device. Moreover, it is no longer necessary to
unprepare and disable the clocks explicitly.

Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Acked-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Tested-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Link: https://patch.msgid.link/84bc40641d05596f1edf4f01d1e6aea16bdbeeb5.1749201126.git.xiaopei01@kylinos.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_sai.c