diff options
author | Bartosz Golaszewski <brgl@bgdev.pl> | 2017-05-31 18:06:58 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-06-21 15:53:11 +0200 |
commit | f160203986a6ad23ab8077c4a25b260fe55d6e26 (patch) | |
tree | 4f3f098381ec4e509a518a9d308bcb7ca503d077 /kernel/irq/internals.h | |
parent | 32bb6cbb3b4ea5ca24e3fa13e11772c192616e04 (diff) | |
download | linux-f160203986a6ad23ab8077c4a25b260fe55d6e26.tar.gz linux-f160203986a6ad23ab8077c4a25b260fe55d6e26.tar.bz2 linux-f160203986a6ad23ab8077c4a25b260fe55d6e26.zip |
irq/generic-chip: Export irq_init_generic_chip() locally
This function will be used in the devres variant of
irq_alloc_generic_chip().
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: linux-doc@vger.kernel.org
Cc: Jonathan Corbet <corbet@lwn.net>
Link: http://lkml.kernel.org/r/1496246820-13250-4-git-send-email-brgl@bgdev.pl
Diffstat (limited to 'kernel/irq/internals.h')
-rw-r--r-- | kernel/irq/internals.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h index bc226e783bd2..921a2419720c 100644 --- a/kernel/irq/internals.h +++ b/kernel/irq/internals.h @@ -226,3 +226,14 @@ irq_pm_install_action(struct irq_desc *desc, struct irqaction *action) { } static inline void irq_pm_remove_action(struct irq_desc *desc, struct irqaction *action) { } #endif + +#ifdef CONFIG_GENERIC_IRQ_CHIP +void irq_init_generic_chip(struct irq_chip_generic *gc, const char *name, + int num_ct, unsigned int irq_base, + void __iomem *reg_base, irq_flow_handler_t handler); +#else +static inline void +irq_init_generic_chip(struct irq_chip_generic *gc, const char *name, + int num_ct, unsigned int irq_base, + void __iomem *reg_base, irq_flow_handler_t handler) { } +#endif /* CONFIG_GENERIC_IRQ_CHIP */ |