]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
irqchip: Add irqchip_init dummy function
authorBastian Hecht <hechtb@gmail.com>
Wed, 8 May 2013 13:20:04 +0000 (15:20 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 9 May 2013 03:42:53 +0000 (12:42 +0900)
We add an empty irqchip_init dummy function for cases in which
CONFIG_IRQCHIP is not used. In these cases irqchip.c is not compiled,
but a funtion call may still be present in architecture code, that in
runtime doesn't get hit.

E.g. this is needed in the arch/arm/mach-shmobile/intc-r8a7740.c
interrupt setup code where OF use and non OF us is both handled in one
file.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
[horms+renesas@verge.net.au: Make non-CONFIG_IRQCHIP version static inline
 and remove trailing ';'.]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
include/linux/irqchip.h

index e0006f1d35a0e55ffe335a861fa0241f43860e5c..14d79131f53dda6e6a03fe1d1e375b5b0ba45ed9 100644 (file)
 #ifndef _LINUX_IRQCHIP_H
 #define _LINUX_IRQCHIP_H
 
+#ifdef CONFIG_IRQCHIP
 void irqchip_init(void);
+#else
+static inline void irqchip_init(void) {}
+#endif
 
 #endif