With SDIO IRQ, spurious interrupts are generated on
module unloading.

This patch fixes that by disabling IRQs early.
Tested with a b43-based wireless SDIO card and sh_mobile_sdhi.

Signed-off-by: Arnd Hannemann <[email protected]>
---
 drivers/mmc/host/tmio_mmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c
index 18771b4..37721aa 100644
--- a/drivers/mmc/host/tmio_mmc.c
+++ b/drivers/mmc/host/tmio_mmc.c
@@ -1249,9 +1249,9 @@ static int __devexit tmio_mmc_remove(struct 
platform_device *dev)
 
        if (mmc) {
                struct tmio_mmc_host *host = mmc_priv(mmc);
-               mmc_remove_host(mmc);
                tmio_mmc_release_dma(host);
                free_irq(host->irq, host);
+               mmc_remove_host(mmc);
                if (cell->disable)
                        cell->disable(dev);
                iounmap(host->ctl);
-- 
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to