]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mmc: sunxi: Disable sample clks on remove
authorHans de Goede <hdegoede@redhat.com>
Sat, 30 Jul 2016 14:25:44 +0000 (16:25 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Sep 2016 19:31:04 +0000 (21:31 +0200)
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>
drivers/mmc/host/sunxi-mmc.c

index 2ee4c21ec55eec871c13aadaaad5bb5f9903a581..d7dadb5522baeeff9de46eba3c5bc7c0be5bf5a5 100644 (file)
@@ -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);