summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/mmci.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-12-18 11:31:51 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-01-25 11:02:02 +0000
commit023f117c547719fbc087ad72276aec5a026370df (patch)
tree068c4cec712bbf881153505aaf7c194859cfc79d /drivers/mmc/host/mmci.c
parent039e7ad89211a63d98341e4add4fc6720f383c2a (diff)
downloadblackbird-op-linux-023f117c547719fbc087ad72276aec5a026370df.tar.gz
blackbird-op-linux-023f117c547719fbc087ad72276aec5a026370df.zip
ARM: amba: make irq 0 invalid
Fix core bus and MMCI such that irq 0 means that there is no IRQ attached. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc/host/mmci.c')
-rw-r--r--drivers/mmc/host/mmci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 0d955ffaf44e..304f2f98b680 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -1325,7 +1325,7 @@ static int __devinit mmci_probe(struct amba_device *dev,
if (ret)
goto unmap;
- if (dev->irq[1] == NO_IRQ)
+ if (dev->irq[1] == NO_IRQ || !dev->irq[1])
host->singleirq = true;
else {
ret = request_irq(dev->irq[1], mmci_pio_irq, IRQF_SHARED,
OpenPOWER on IntegriCloud