mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
AMBA: get rid of last two uses of NO_IRQ
This gets rid of the last two users of NO_IRQ in AMBA primecell drivers. Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
08956a0e8a
commit
dfb85185bd
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue