Skip to contentSkip to conversation

irqchip: irq-sunxi: Add terminating entry for sunxi_irq_dt_ids

PATCH Applied Axel Lin 2 participants 2 messages Dec 2, 2012 – Dec 3, 2012

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 irqchip: irq-sunxi: Add terminating entry for sunxi_irq_dt_ids

The of_device_id table is supposed to be zero-terminated.

---
 drivers/irqchip/irq-sunxi.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/irqchip/irq-sunxi.c +2 -1
index eef41a4..10974fa 100644
@@ -129,7 +129,8 @@ static int __init sunxi_of_init(struct device_node *node,
 }
 
 static struct of_device_id sunxi_irq_dt_ids[] __initconst = {
-	{ .compatible = "allwinner,sunxi-ic", .data = sunxi_of_init }
+	{ .compatible = "allwinner,sunxi-ic", .data = sunxi_of_init },
+	{ }
 };
 
 void __init sunxi_init_irq(void)
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 1 line · Axel Lin

The of_device_id table is supposed to be zero-terminated.

Applied, thanks.

Signature · 4 lines
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com