Message ID | 49F590F9.9060507@gmail.com |
---|---|
State | Not Applicable |
Delegated to: | David Miller |
Headers | show |
diff --git a/arch/sparc/include/asm/irq.h b/arch/sparc/include/asm/irq.h index 3b44a6a..191cb5c 100644 --- a/arch/sparc/include/asm/irq.h +++ b/arch/sparc/include/asm/irq.h @@ -6,3 +6,6 @@ #include <asm/irq_32.h> #endif #endif + +#define NO_IRQ 0 + diff --git a/arch/sparc/kernel/of_device_32.c b/arch/sparc/kernel/of_device_32.c index c8f14c1..e74e082 100644 --- a/arch/sparc/kernel/of_device_32.c +++ b/arch/sparc/kernel/of_device_32.c @@ -34,7 +34,7 @@ unsigned int irq_of_parse_and_map(struct device_node *node, int index) struct of_device *op = of_find_device_by_node(node); if (!op || index >= op->num_irqs) - return 0; + return NO_IRQ; return op->irqs[index]; } diff --git a/arch/sparc/kernel/of_device_64.c b/arch/sparc/kernel/of_device_64.c index 5ac287a..6506ebd 100644 --- a/arch/sparc/kernel/of_device_64.c +++ b/arch/sparc/kernel/of_device_64.c @@ -60,7 +60,7 @@ unsigned int irq_of_parse_and_map(struct device_node *node, int index) struct of_device *op = of_find_device_by_node(node); if (!op || index >= op->num_irqs) - return 0; + return NO_IRQ; return op->irqs[index]; }