]> git.baikalelectronics.ru Git - kernel.git/commit
memory: mvebu-devbus: Fix missing clk_disable_unprepare in mvebu_devbus_probe()
authorGaosheng Cui <cuigaosheng1@huawei.com>
Sat, 26 Nov 2022 04:49:11 +0000 (12:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:52:34 +0000 (07:52 +0100)
commit4b19905e92d2e54d6bf0c85e63cd033c080e51e8
tree2e18d29777a7206093cc553200262635b44f5877
parentc0394c586deabe684406f2115a38286f0d8e8d69
memory: mvebu-devbus: Fix missing clk_disable_unprepare in mvebu_devbus_probe()

[ Upstream commit cb8fd6f75775165390ededea8799b60d93d9fe3e ]

The clk_disable_unprepare() should be called in the error handling
of devbus_get_timing_params() and of_platform_populate(), fix it by
replacing devm_clk_get and clk_prepare_enable by devm_clk_get_enabled.

Fixes: 09c35faf9bd7 ("memory: add a driver for atmel ram controllers")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Link: https://lore.kernel.org/r/20221126044911.7226-1-cuigaosheng1@huawei.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/memory/mvebu-devbus.c