]> git.baikalelectronics.ru Git - kernel.git/commit
memory: atmel-sdramc: Fix missing clk_disable_unprepare in atmel_ramc_probe()
authorGaosheng Cui <cuigaosheng1@huawei.com>
Fri, 25 Nov 2022 07:37:57 +0000 (15:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:52:34 +0000 (07:52 +0100)
commitfc3297e424a7809e4faed21126c357fd400a1325
tree863d5f89e0c40251f9562c2aae614d55c2901fe0
parentb9373529b91a484f381d1d2add6d3fd804ac5f3e
memory: atmel-sdramc: Fix missing clk_disable_unprepare in atmel_ramc_probe()

[ Upstream commit 340cb392a038cf70540a4cdf2e98a247c66b6df4 ]

The clk_disable_unprepare() should be called in the error handling
of caps->has_mpddr_clk, fix it by replacing devm_clk_get and
clk_prepare_enable by devm_clk_get_enabled.

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