AMBA: get rid of last two uses of NO_IRQ
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 May 2012 10:33:15 +0000 (11:33 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 May 2012 10:33:15 +0000 (11:33 +0100)
This gets rid of the last two users of NO_IRQ in AMBA primecell
drivers.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/amba/bus.c
drivers/mmc/host/mmci.c

index 9469d87220389078fff379a43a85169eac0cc49f..b7e7285172845c969ed9c2e24b627d40db32dda0 100644 (file)
@@ -527,9 +527,9 @@ int amba_device_add(struct amba_device *dev, struct resource *parent)
        if (ret)
                goto err_release;
 
-       if (dev->irq[0] && dev->irq[0] != NO_IRQ)
+       if (dev->irq[0])
                ret = device_create_file(&dev->dev, &dev_attr_irq0);
-       if (ret == 0 && dev->irq[1] && dev->irq[1] != NO_IRQ)
+       if (ret == 0 && dev->irq[1])
                ret = device_create_file(&dev->dev, &dev_attr_irq1);
        if (ret == 0)
                return ret;
index 032b84791a16fecc10a7da9a9bae4f460cc9e1b9..289f30ae22e2a9dcb9df590ee6dce7421ad7f824 100644 (file)
@@ -1397,7 +1397,7 @@ static int __devinit mmci_probe(struct amba_device *dev,
        if (ret)
                goto unmap;
 
-       if (dev->irq[1] == NO_IRQ || !dev->irq[1])
+       if (!dev->irq[1])
                host->singleirq = true;
        else {
                ret = request_irq(dev->irq[1], mmci_pio_irq, IRQF_SHARED,