diff mbox

mmc: clear all interrupt in suspend before free_irq

Message ID AANLkTi=M5M=uaGJ-+8K0fLDssDR7bnD=K0Saxz-Gww6y@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Zhangfei Gao Jan. 21, 2011, 10:27 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index aacd78c..97074ae 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1707,6 +1707,7 @@  int sdhci_suspend_host(struct sdhci_host *host,
pm_message_t state)
 	ret = mmc_suspend_host(host->mmc);
 	if (ret)
 		return ret;
+	sdhci_clear_set_irqs(host, SDHCI_INT_ALL_MASK, 0);

 	free_irq(host->irq, host);