diff options
author | Nicolas Pitre <nico@cam.org> | 2007-07-24 02:09:39 -0400 |
---|---|---|
committer | Pierre Ossman <drzeus@drzeus.cx> | 2007-09-23 21:13:08 +0200 |
commit | 17b759aff916b4d02721e75ce5ed82b1903e5bd6 (patch) | |
tree | eef4463cbc556e7ae4bd78dba0e6acd861b283c3 /drivers/mmc/core/host.c | |
parent | 112c9db91ee6bf19eca7cbb6854be3127381c229 (diff) | |
download | blackbird-op-linux-17b759aff916b4d02721e75ce5ed82b1903e5bd6.tar.gz blackbird-op-linux-17b759aff916b4d02721e75ce5ed82b1903e5bd6.zip |
sdio: add interface for host side SDIO interrupt reporting
Signed-off-by: Nicolas Pitre <npitre@mvista.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/core/host.c')
-rw-r--r-- | drivers/mmc/core/host.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 2c7ce8f43a9a..37b761891d67 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; |