Thomas Petazzoni | f6e916b | 2012-11-20 23:00:52 +0100 | [diff] [blame] | 1 | /* |
| 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 Boyd | 559ba4b | 2014-03-04 17:01:21 -0800 | [diff] [blame] | 13 | #include <linux/irqchip.h> |
Thomas Petazzoni | f6e916b | 2012-11-20 23:00:52 +0100 | [diff] [blame] | 14 | |
Thomas Petazzoni | f6e916b | 2012-11-20 23:00:52 +0100 | [diff] [blame] | 15 | /* |
| 16 | * This special of_device_id is the sentinel at the end of the |
| 17 | * of_device_id[] array of all irqchips. It is automatically placed at |
| 18 | * the end of the array by the linker, thanks to being part of a |
| 19 | * special section. |
| 20 | */ |
| 21 | static const struct of_device_id |
Rob Herring | 735e0da | 2014-03-24 16:06:42 -0500 | [diff] [blame] | 22 | irqchip_of_match_end __used __section(__irqchip_of_table_end); |
Thomas Petazzoni | f6e916b | 2012-11-20 23:00:52 +0100 | [diff] [blame] | 23 | |
Rob Herring | 735e0da | 2014-03-24 16:06:42 -0500 | [diff] [blame] | 24 | extern struct of_device_id __irqchip_of_table[]; |
Thomas Petazzoni | f6e916b | 2012-11-20 23:00:52 +0100 | [diff] [blame] | 25 | |
| 26 | void __init irqchip_init(void) |
| 27 | { |
Rob Herring | 735e0da | 2014-03-24 16:06:42 -0500 | [diff] [blame] | 28 | of_irq_init(__irqchip_of_table); |
Thomas Petazzoni | f6e916b | 2012-11-20 23:00:52 +0100 | [diff] [blame] | 29 | } |