]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: freescale: fsl-samsung-hdmi: Use helper function devm_clk_get_enabled()
authorPei Xiao <xiaopei01@kylinos.cn>
Sat, 8 Feb 2025 03:44:01 +0000 (11:44 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 13 Feb 2025 17:57:27 +0000 (23:27 +0530)
commit279950205dde78bc0e3ca73a8dfee6842f0e1edc
tree7994899019fb2fb95f4e0b3ccf6c4a4f9b8a9bdb
parentd58c04e305afbaa9dda7969151f06c4efe2c98b0
phy: freescale: fsl-samsung-hdmi: 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>
Link: https://lore.kernel.org/r/tencent_9087BCE04E38E6AA5C4B2252B82FA99C2009@qq.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/freescale/phy-fsl-samsung-hdmi.c