diff options
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/mvsdio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c index 3b9136c1a475..a61cb5fca22d 100644 --- a/drivers/mmc/host/mvsdio.c +++ b/drivers/mmc/host/mvsdio.c | |||
@@ -839,6 +839,10 @@ out: | |||
839 | if (r) | 839 | if (r) |
840 | release_resource(r); | 840 | release_resource(r); |
841 | if (mmc) | 841 | if (mmc) |
842 | if (!IS_ERR_OR_NULL(host->clk)) { | ||
843 | clk_disable_unprepare(host->clk); | ||
844 | clk_put(host->clk); | ||
845 | } | ||
842 | mmc_free_host(mmc); | 846 | mmc_free_host(mmc); |
843 | 847 | ||
844 | return ret; | 848 | return ret; |