diff options
author | Michał Zegan <webczat@webczatnet.pl> | 2017-02-18 18:06:47 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-04-24 21:41:17 +0200 |
commit | a01fc2a295af6418d665d8f9c18af6017a929065 (patch) | |
tree | ebd9c36f3190e6db764b2da5543712b045e3340b /drivers/mmc/host/meson-gx-mmc.c | |
parent | mmc: host: tmio: fill in response from auto cmd12 (diff) | |
download | linux-a01fc2a295af6418d665d8f9c18af6017a929065.tar.xz linux-a01fc2a295af6418d665d8f9c18af6017a929065.zip |
mmc: meson-gx: remove mmc host on device removal
The mmc host was added in meson_mmc_probe, but never removed in
meson_mmc_remove.
Fix that by removing the host before deallocating other resources.
Signed-off-by: Michał Zegan <webczat@webczatnet.pl>
Tested-by: Michał Zegan <webczat@webczatnet.pl>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/meson-gx-mmc.c')
-rw-r--r-- | drivers/mmc/host/meson-gx-mmc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index 62597638ccaf..c574e1519623 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -793,6 +793,8 @@ static int meson_mmc_remove(struct platform_device *pdev) { struct meson_host *host = dev_get_drvdata(&pdev->dev); + mmc_remove_host(host->mmc); + /* disable interrupts */ writel(0, host->regs + SD_EMMC_IRQ_EN); |