of: OF_IRQ should depend on IRQ_DOMAIN
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 5 Apr 2015 14:59:24 +0000 (16:59 +0200)
committerRob Herring <robh@kernel.org>
Wed, 15 Apr 2015 00:22:09 +0000 (19:22 -0500)
If CONFIG_IRQ_DOMAIN=n:

drivers/of/irq.c: In function ‘of_irq_get’:
drivers/of/irq.c:406: error: implicit declaration of function ‘irq_find_host’
drivers/of/irq.c:406: warning: assignment makes pointer from integer without a cast
make[2]: *** [drivers/of/irq.o] Error 1

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/Kconfig

index 7bcaeec..0638efd 100644 (file)
@@ -46,7 +46,7 @@ config OF_ADDRESS_PCI
 
 config OF_IRQ
        def_bool y
-       depends on !SPARC
+       depends on !SPARC && IRQ_DOMAIN
 
 config OF_NET
        depends on NETDEVICES