diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-12-18 11:43:56 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-25 11:04:02 +0000 |
commit | 2eac58d5026e4ec8b17ff8b62877fea9e1d2f1b3 (patch) | |
tree | 7d3bd6986a0fc023d24a9c79bcfb99ba6951ebf7 /drivers/amba | |
parent | 3bf96889976168827eade6788f26391de051e872 (diff) | |
download | kernel_goldelico_gta04-2eac58d5026e4ec8b17ff8b62877fea9e1d2f1b3.zip kernel_goldelico_gta04-2eac58d5026e4ec8b17ff8b62877fea9e1d2f1b3.tar.gz kernel_goldelico_gta04-2eac58d5026e4ec8b17ff8b62877fea9e1d2f1b3.tar.bz2 |
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>
Diffstat (limited to 'drivers/amba')
-rw-r--r-- | drivers/amba/bus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index d15acbb..01c2cf4 100644 --- a/drivers/amba/bus.c +++ b/drivers/amba/bus.c @@ -511,6 +511,9 @@ int amba_device_add(struct amba_device *dev, struct resource *parent) void __iomem *tmp; int i, ret; + WARN_ON(dev->irq[0] == (unsigned int)-1); + WARN_ON(dev->irq[1] == (unsigned int)-1); + ret = request_resource(parent, &dev->res); if (ret) goto err_out; |