aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irqchip.c
diff options
context:
space:
mode:
authorMarc Zyngier <Marc.Zyngier@arm.com>2015-09-28 10:49:13 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-09-30 20:18:38 -0400
commit46e589a391809627144e6bee93d71d73fe915db2 (patch)
treeb9d3feafb1ebcf69e50263ea1d04d0673f8da1ac /drivers/irqchip/irqchip.c
parente647b532275bb357e87272e052fccf5fcdb36a17 (diff)
irqchip / ACPI: Add probing infrastructure for ACPI-based irqchips
DT enjoys a rather nice probing infrastructure for irqchips, while ACPI is so far stuck into a very distant past. This patch introduces a declarative API, allowing irqchips to be self-contained and be called when a particular entry is matched in the MADT table. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org> Acked-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/irqchip/irqchip.c')
-rw-r--r--drivers/irqchip/irqchip.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/irqchip/irqchip.c b/drivers/irqchip/irqchip.c
index afd1af3dfe5a..1ee773e98f5f 100644
--- a/drivers/irqchip/irqchip.c
+++ b/drivers/irqchip/irqchip.c
@@ -8,7 +8,7 @@
8 * warranty of any kind, whether express or implied. 8 * warranty of any kind, whether express or implied.
9 */ 9 */
10 10
11#include <linux/acpi_irq.h> 11#include <linux/acpi.h>
12#include <linux/init.h> 12#include <linux/init.h>
13#include <linux/of_irq.h> 13#include <linux/of_irq.h>
14#include <linux/irqchip.h> 14#include <linux/irqchip.h>
@@ -27,6 +27,8 @@ extern struct of_device_id __irqchip_of_table[];
27void __init irqchip_init(void) 27void __init irqchip_init(void)
28{ 28{
29 of_irq_init(__irqchip_of_table); 29 of_irq_init(__irqchip_of_table);
30 30#if defined(CONFIG_ARM64) && defined(CONFIG_ACPI)
31 acpi_irq_init(); 31 acpi_gic_init(); /* Temporary hack */
32#endif
33 acpi_probe_device_table(irqchip);
32} 34}