Skip to content

Commit

Permalink
AMBA: get rid of last two uses of NO_IRQ
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King committed May 3, 2012
1 parent 08956a0 commit dfb8518
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/amba/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dfb8518

Please sign in to comment.