/* * Copyright (C) 2012 Thomas Petazzoni * * Thomas Petazzoni <[email protected]> * * 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. */ #include <linux/acpi.h> #include <linux/init.h> #include <linux/of.h> #include <linux/of_irq.h> #include <linux/irqchip.h> #include <linux/platform_device.h> /* * 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 irqchip_of_match_end __used __section(…); extern struct of_device_id __irqchip_of_table[]; void __init irqchip_init(void) { … } int platform_irqchip_probe(struct platform_device *pdev) { … } EXPORT_SYMBOL_GPL(…);