linux-stable/drivers/of
Rob Herring c71a54b082 of/irq: introduce of_irq_init
of_irq_init will scan the devicetree for matching interrupt controller
nodes. Then it calls an initialization function for each found controller
in the proper order with parent nodes initialized before child nodes.

Based on initial pseudo code from Grant Likely.

Changes in v4:
- Drop unnecessary empty list check
- Be more verbose on errors
- Simplify "if (!desc) WARN_ON(1)" to "if (WARN_ON(!desc))"

Changes in v3:
- add missing kfree's found by Jamie
- Implement Grant's comments to simplify the init loop
- fix function comments

Changes in v2:
- Complete re-write of list searching code from Grant Likely

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
2011-10-31 14:03:22 +01:00
..
address.c of: address: use resource_size helper 2011-08-01 12:55:02 +01:00
base.c Revert "dt: add of_alias_scan and of_alias_get_id" 2011-08-04 11:26:24 +01:00
device.c dt/powerpc: move of_bus_type infrastructure to ibmebus 2011-02-28 01:36:38 -07:00
fdt.c Revert "dt: add of_alias_scan and of_alias_get_id" 2011-08-04 11:26:24 +01:00
gpio.c of/gpio: export of_gpio_simple_xlate 2011-07-28 16:19:22 -06:00
irq.c of/irq: introduce of_irq_init 2011-10-31 14:03:22 +01:00
Kconfig pci/of: Match PCI devices to OF nodes dynamically 2011-06-08 09:08:17 +10:00
Makefile pci/of: Match PCI devices to OF nodes dynamically 2011-06-08 09:08:17 +10:00
of_i2c.c of/i2c: Fix request module by alias 2010-12-24 01:28:54 -07:00
of_mdio.c Fix common misspellings 2011-03-31 11:26:23 -03:00
of_net.c net: ibm_newemac: convert it to use of_get_phy_mode 2011-07-27 09:31:02 +08:00
of_pci.c of: fix missing include from of_pci.c 2011-07-23 23:53:55 -06:00
of_pci_irq.c pci/of: Match PCI devices to OF nodes dynamically 2011-06-08 09:08:17 +10:00
of_spi.c of/spi: call of_register_spi_devices() from spi core code 2010-07-30 00:03:59 -06:00
pdt.c of/promtree: allow DT device matching by fixing 'name' brokenness (v5) 2011-03-02 13:45:19 -07:00
platform.c Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2011-07-25 22:59:39 -07:00