irqchip.c 878 B

12345678910111213141516171819202122232425262728293031
  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. #include <linux/acpi.h>
  11. #include <linux/init.h>
  12. #include <linux/of_irq.h>
  13. #include <linux/irqchip.h>
  14. /*
  15. * This special of_device_id is the sentinel at the end of the
  16. * of_device_id[] array of all irqchips. It is automatically placed at
  17. * the end of the array by the linker, thanks to being part of a
  18. * special section.
  19. */
  20. static const struct of_device_id
  21. irqchip_of_match_end __used __section(__irqchip_of_table_end);
  22. extern struct of_device_id __irqchip_of_table[];
  23. void __init irqchip_init(void)
  24. {
  25. of_irq_init(__irqchip_of_table);
  26. acpi_probe_device_table(irqchip);
  27. }