X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fmmc%2Fcore%2Fhost.c;h=37b761891d67577fc3f9f327f43603e785d496b3;hb=17b759aff916b4d02721e75ce5ed82b1903e5bd6;hp=2c7ce8f43a9a60367a6f75397a7da831c3afe8d3;hpb=112c9db91ee6bf19eca7cbb6854be3127381c229;p=linux-2.6-omap-h63xx.git diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 2c7ce8f43a9..37b761891d6 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -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;