]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
mmc: mxs-mmc: disable regulator on error and in the remove function
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 16 Oct 2021 06:21:44 +0000 (08:21 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 13 Jan 2022 17:42:23 +0000 (18:42 +0100)
commita1124eb8125fdfc92066753536a056e23a5c1a5e
tree7a93380e8b01cb33d4bfb229f1e63aa1b9e61fd5
parentd21d8e0f9c7920ccfdc1bacdc1cc1167bab2ef52
mmc: mxs-mmc: disable regulator on error and in the remove function

BugLink: https://bugs.launchpad.net/bugs/1953387
[ Upstream commit ce5f6c2c9b0fcb4094f8e162cfd37fb4294204f7 ]

The 'reg_vmmc' regulator is enabled in the probe. It is never disabled.
Neither in the error handling path of the probe nor in the remove
function.

Register a devm_action to disable it when needed.

Fixes: 4dc5a79f1350 ("mmc: mxs-mmc: enable regulator for mmc slot")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/4aadb3c97835f7b80f00819c3d549e6130384e67.1634365151.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/mmc/host/mxs-mmc.c