Commit 2eac58d5 authored by Russell King's avatar Russell King

ARM: amba: make use of -1 IRQs warn

Make the core warn about the use of -1 (NO_IRQ)
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 3bf96889
...@@ -511,6 +511,9 @@ int amba_device_add(struct amba_device *dev, struct resource *parent) ...@@ -511,6 +511,9 @@ int amba_device_add(struct amba_device *dev, struct resource *parent)
void __iomem *tmp; void __iomem *tmp;
int i, ret; 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); ret = request_resource(parent, &dev->res);
if (ret) if (ret)
goto err_out; goto err_out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment