summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-07-30 16:25:44 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2016-09-26 21:31:04 +0200
commit4c5f4bf412eabc355b9c2bc99f8283ca0bd7d6ef (patch)
tree311ec6bd77d466f4d702f46be495a669757b4a8b /drivers/mmc
parent08895a8b6b06ed2323cd97a36ee40a116b3db8ed (diff)
downloadlinux-4c5f4bf412eabc355b9c2bc99f8283ca0bd7d6ef.tar.gz
linux-4c5f4bf412eabc355b9c2bc99f8283ca0bd7d6ef.tar.bz2
linux-4c5f4bf412eabc355b9c2bc99f8283ca0bd7d6ef.zip
mmc: sunxi: Disable sample clks on remove
When support for the sample clks was added calls to prepare_enable were added to the probe path, but matching calls to disable_unprepare were forgotten in the remove path, this fixes this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sunxi-mmc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
index 2ee4c21ec55e..d7dadb5522ba 100644
--- a/drivers/mmc/host/sunxi-mmc.c
+++ b/drivers/mmc/host/sunxi-mmc.c
@@ -1160,6 +1160,8 @@ static int sunxi_mmc_remove(struct platform_device *pdev)
if (!IS_ERR(host->reset))
reset_control_assert(host->reset);
+ clk_disable_unprepare(host->clk_sample);
+ clk_disable_unprepare(host->clk_output);
clk_disable_unprepare(host->clk_mmc);
clk_disable_unprepare(host->clk_ahb);