diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/glamo/glamo-mci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mfd/glamo/glamo-mci.c b/drivers/mfd/glamo/glamo-mci.c index c0c58f173f4..f44dfc8ac53 100644 --- a/drivers/mfd/glamo/glamo-mci.c +++ b/drivers/mfd/glamo/glamo-mci.c @@ -878,12 +878,13 @@ static int glamo_mci_remove(struct platform_device *pdev) struct mmc_host *mmc = platform_get_drvdata(pdev); struct glamo_mci_host *host = mmc_priv(mmc); - free_irq(host->irq, host); - mmc_host_enable(mmc); mmc_remove_host(mmc); mmc_host_disable(mmc); + synchronize_irq(host->irq); + free_irq(host->irq, host); + iounmap(host->mmio_base); iounmap(host->data_base); release_mem_region(host->mmio_mem->start, |