]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: au1xmmc: Fix an error handling path in au1xmmc_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 25 Aug 2022 07:33:57 +0000 (09:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:29 +0000 (13:22 +0200)
commit8395ffbe94fd04e8204ef05cbb2975f481d85dd8
tree858d6ed2a381ea252b103afd9c536205148cb7ff
parent6199f9ada00837dfc9aa9ef5a83b51e9800fccdd
mmc: au1xmmc: Fix an error handling path in au1xmmc_probe()

[ Upstream commit 3c0146d07070aa7f982eb99cde3acd92c4b6d94e ]

If clk_prepare_enable() fails, there is no point in calling
clk_disable_unprepare() in the error handling path.

Move the out_clk label at the right place.

Fixes: 6cfa5a143b41 ("MIPS: Alchemy: au1xmmc: use clk framework")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/21d99886d07fa7fcbec74992657dabad98c935c4.1661412818.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/au1xmmc.c