]> 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:41:22 +0000 (08:41 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:12:03 +0000 (13:12 +0100)
commitb9bf2e627952b7715c5a967f6277df2dd0cca692
tree5c76ebda2c04bbafd645635e26982dcc7e49bb6e
parent2c28e0872c017de7b6b04ad06ea449ca00ff326a
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