aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/irqchip.h
diff options
context:
space:
mode:
authorBastian Hecht <hechtb@gmail.com>2013-05-08 15:20:04 +0200
committerSimon Horman <horms+renesas@verge.net.au>2013-06-06 10:23:58 +0900
commit0d7c1210992ff05ee8de5d2c790defded3856f29 (patch)
tree57070db59444e4ebf173675fe95a5b59c9bf0f74 /include/linux/irqchip.h
parentirqchip: renesas-irqc: Fix irqc_probe error handling (diff)
downloadwireguard-linux-0d7c1210992ff05ee8de5d2c790defded3856f29.tar.xz
wireguard-linux-0d7c1210992ff05ee8de5d2c790defded3856f29.zip
irqchip: Add irqchip_init dummy function
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>
Diffstat (limited to 'include/linux/irqchip.h')
-rw-r--r--include/linux/irqchip.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/irqchip.h b/include/linux/irqchip.h
index e0006f1d35a0..14d79131f53d 100644
--- a/include/linux/irqchip.h
+++ b/include/linux/irqchip.h
@@ -11,6 +11,10 @@
#ifndef _LINUX_IRQCHIP_H
#define _LINUX_IRQCHIP_H
+#ifdef CONFIG_IRQCHIP
void irqchip_init(void);
+#else
+static inline void irqchip_init(void) {}
+#endif
#endif