mmc: uniphier-sd: Fix an error handling path in uniphier_sd_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 20 Feb 2021 14:29:35 +0000 (15:29 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 30 Mar 2021 09:41:59 +0000 (11:41 +0200)
commitb03aec1c1f337dfdae44cdb0645ecac34208ae0a
tree050a09c09b0d631c915833f572a92ec084805ba6
parentc29b84d6d5577edea7c6a6e6052eb048f963963c
mmc: uniphier-sd: Fix an error handling path in uniphier_sd_probe()

A 'uniphier_sd_clk_enable()' call should be balanced by a corresponding
'uniphier_sd_clk_disable()' call.
This is done in the remove function, but not in the error handling path of
the probe.

Add the missing call.

Fixes: 3fd784f745dd ("mmc: uniphier-sd: add UniPhier SD/eMMC controller driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20210220142935.918554-1-christophe.jaillet@wanadoo.fr
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/uniphier-sd.c