]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: ohci-nxp: Use helper function devm_clk_get_enabled()
authorZhang Zekun <zhangzekun11@huawei.com>
Tue, 30 Dec 2025 13:34:57 +0000 (08:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:10:07 +0000 (13:10 +0100)
commit0928573aeccbe08f9c2576611492bdf13d6ed1cb
tree12a65a0ed1432ce264b6c24c288875563e1a3e97
parent50ee04e0ae62bddaa88da93befb1d744ed33c3fd
usb: ohci-nxp: Use helper function devm_clk_get_enabled()

[ Upstream commit c146ede472717f352b7283a525bd9a1a2b15e2cf ]

devm_clk_get() and clk_prepare_enable() can be replaced by helper
function devm_clk_get_enabled(). Let's use devm_clk_get_enabled() to
simplify code and avoid calling clk_disable_unprepare().

Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20240902123020.29267-3-zhangzekun11@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: b4c61e542faf ("usb: ohci-nxp: fix device leak on probe failure")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-nxp.c