Skip to content

Commit 2eac58d

Browse files
author
Russell King
committed
ARM: amba: make use of -1 IRQs warn
Make the core warn about the use of -1 (NO_IRQ) Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 3bf9688 commit 2eac58d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/amba/bus.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,9 @@ int amba_device_add(struct amba_device *dev, struct resource *parent)
511511
void __iomem *tmp;
512512
int i, ret;
513513

514+
WARN_ON(dev->irq[0] == (unsigned int)-1);
515+
WARN_ON(dev->irq[1] == (unsigned int)-1);
516+
514517
ret = request_resource(parent, &dev->res);
515518
if (ret)
516519
goto err_out;

0 commit comments

Comments
 (0)