]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/mmc/core/slot-gpio.c
mmc: sdhci-pci: Respect PM flags when enabling card detect GPIO IRQ wakeup
[linux.git] / drivers / mmc / core / slot-gpio.c
index dccbc52af5c49c32471c78dd514f7c9d3fb099ae..31f7dbb1566873a4e05ae336c3c602fcf0f53c53 100644 (file)
@@ -149,8 +149,6 @@ void mmc_gpiod_request_cd_irq(struct mmc_host *host)
 
        if (irq < 0)
                host->caps |= MMC_CAP_NEEDS_POLL;
-       else if ((host->caps & MMC_CAP_CD_WAKE) && !enable_irq_wake(irq))
-               host->slot.cd_wake_enabled = true;
 }
 EXPORT_SYMBOL(mmc_gpiod_request_cd_irq);