]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mmc/core/host.c
sdio: add interface for host side SDIO interrupt reporting
[linux-2.6-omap-h63xx.git] / drivers / mmc / core / host.c
index 2c7ce8f43a9a60367a6f75397a7da831c3afe8d3..37b761891d67577fc3f9f327f43603e785d496b3 100644 (file)
@@ -100,6 +100,9 @@ int mmc_add_host(struct mmc_host *host)
 {
        int err;
 
+       WARN_ON((host->caps & MMC_CAP_SDIO_IRQ) &&
+               !host->ops->enable_sdio_irq);
+
        if (!idr_pre_get(&mmc_host_idr, GFP_KERNEL))
                return -ENOMEM;