Skip to content
Commit c61bfb1c authored by Gaosheng Cui's avatar Gaosheng Cui Committed by Ulf Hansson
Browse files

mmc: mtk-sd: Fix missing clk_disable_unprepare in msdc_of_clock_parse()



The clk_disable_unprepare() should be called in the error handling
of devm_clk_bulk_get_optional, fix it by replacing devm_clk_get_optional
and clk_prepare_enable by devm_clk_get_optional_enabled.

Fixes: f5eccd94 ("mmc: mediatek: Add subsys clock control for MT8192 msdc")
Signed-off-by: default avatarGaosheng Cui <cuigaosheng1@huawei.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20221125090141.3626747-1-cuigaosheng1@huawei.com


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent f4307b4d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment