aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2010-06-16 16:21:00 +0200
committerLars-Peter Clausen <lars@metafoo.de>2010-06-19 22:36:38 +0200
commit8509e608a6ba91fe0760ca7d8fb21a1301b1fd89 (patch)
treebb13987323a296cc02b5d10c7dce54b2fc021e26
parent36d2287d2e643e7049811f542a1b12289641a5ac (diff)
glamo-mci: free irq after removing host, not before
-rw-r--r--drivers/mfd/glamo/glamo-mci.c5
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,