]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: 7236/1: vic: always use simple ops
authorJamie Iles <jamie@jamieiles.com>
Wed, 14 Dec 2011 22:43:17 +0000 (23:43 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 3 Jan 2012 15:17:29 +0000 (15:17 +0000)
Now that irq_domain_simple_ops are available for non-DT users, use them
in the VIC driver so that we don't get a NULL dereference in
irq_domain_to_irq() when registering the domain.

Cc: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/vic.c

index 77287504c8b40e31e3789d1e27dcc824003b2af6..dcb004a804c7da6d23a4104f10e2c4a7980db986 100644 (file)
@@ -197,8 +197,8 @@ static void __init vic_register(void __iomem *base, unsigned int irq,
        v->domain.nr_irq = 32;
 #ifdef CONFIG_OF_IRQ
        v->domain.of_node = of_node_get(node);
-       v->domain.ops = &irq_domain_simple_ops;
 #endif /* CONFIG_OF */
+       v->domain.ops = &irq_domain_simple_ops;
        irq_domain_add(&v->domain);
 }