blob: 3469141f10f62938cac5b643736996dd71e11d21 [file] [log] [blame]
Thomas Petazzonif6e916b2012-11-20 23:00:52 +01001/*
2 * Copyright (C) 2012 Thomas Petazzoni
3 *
4 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5 *
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
9 */
10
11#include <linux/init.h>
12#include <linux/of_irq.h>
Stephen Boyd559ba4b2014-03-04 17:01:21 -080013#include <linux/irqchip.h>
Thomas Petazzonif6e916b2012-11-20 23:00:52 +010014
15#include "irqchip.h"
16
17/*
18 * This special of_device_id is the sentinel at the end of the
19 * of_device_id[] array of all irqchips. It is automatically placed at
20 * the end of the array by the linker, thanks to being part of a
21 * special section.
22 */
23static const struct of_device_id
24irqchip_of_match_end __used __section(__irqchip_of_end);
25
26extern struct of_device_id __irqchip_begin[];
27
28void __init irqchip_init(void)
29{
30 of_irq_init(__irqchip_begin);
31}