Thread (1 message) 1 message, 1 author, 2012-01-20
DORMANTno replies

[PATCH 17/31] ARM: amba: make use of -1 IRQs warn

From: Russell King - ARM Linux <hidden>
Date: 2012-01-20 09:28:09
Also in: linux-devicetree, linux-mmc, linux-omap, linux-samsung-soc
Subsystem: arm primecell bus support, the rest · Maintainers: Russell King, Linus Torvalds

Make the core warn about the use of -1 (NO_IRQ)

Signed-off-by: Russell King <redacted>
---
 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;
-- 
1.7.4.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help