of: Add dummy of_irq_to_resource_table() for IRQ_OF=n
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 5 Apr 2015 14:59:25 +0000 (16:59 +0200)
committerRob Herring <robh@kernel.org>
Wed, 15 Apr 2015 00:23:24 +0000 (19:23 -0500)
commitd616a703a52cf972425cddd43fc01cd4ef867faf
tree1c5355cd587ab83b238df5e76d64c60ec26a2ada
parent63c60e3a6dc3eca53714e8a1784c985a552bc5cd
of: Add dummy of_irq_to_resource_table() for IRQ_OF=n

If CONFIG_IRQ_OF=n:

drivers/built-in.o: In function `of_device_alloc':
(.text+0x72bce): undefined reference to `of_irq_to_resource_table'
make: *** [vmlinux] Error 1

of_device_alloc() calls of_irq_to_resource_table() with nr_irqs = 0 due
to of_irq_count() already being a dummy, so just add a dummy for
of_irq_to_resource_table(), too.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Rob Herring <robh@kernel.org>
include/linux/of_irq.h