irqchip.c 878 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
/*
 * Copyright (C) 2012 Thomas Petazzoni
 *
 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 *
 * This file is licensed under the terms of the GNU General Public
 * License version 2.  This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 */

11
#include <linux/acpi.h>
12 13
#include <linux/init.h>
#include <linux/of_irq.h>
14
#include <linux/irqchip.h>
15 16 17 18 19 20 21 22

/*
 * This special of_device_id is the sentinel at the end of the
 * of_device_id[] array of all irqchips. It is automatically placed at
 * the end of the array by the linker, thanks to being part of a
 * special section.
 */
static const struct of_device_id
23
irqchip_of_match_end __used __section(__irqchip_of_table_end);
24

25
extern struct of_device_id __irqchip_of_table[];
26 27 28

void __init irqchip_init(void)
{
29
	of_irq_init(__irqchip_of_table);
30
	acpi_probe_device_table(irqchip);
31
}