linux/drivers/of
Grant Likely ac80a51e2c of/device: populate platform_device (of_device) resource table on allocation
When allocating a platform_device to represent an OF node, also allocate
space for the resource table and populate it with IRQ and reg property
information.  This change is in preparation for merging the
of_platform_bus_type with the platform_bus_type so that existing
platform_driver code can retrieve base addresses and IRQs data.

Background: a previous commit removed struct of_device and made it a
#define alias for platform_device.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
CC: Michal Simek <monstr@monstr.eu>
CC: Grant Likely <grant.likely@secretlab.ca>
CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: Stephen Rothwell <sfr@canb.auug.org.au>
CC: microblaze-uclinux@itee.uq.edu.au
CC: linuxppc-dev@ozlabs.org
CC: devicetree-discuss@lists.ozlabs.org
2010-07-05 16:14:29 -06:00
..
Kconfig of/address: merge of_iomap() 2010-07-05 16:14:26 -06:00
Makefile of/address: merge of_iomap() 2010-07-05 16:14:26 -06:00
address.c of: Use full node name in resource structures 2010-07-05 16:14:27 -06:00
base.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
device.c of: Modify of_device_get_modalias to be passed struct device 2010-07-05 16:14:28 -06:00
fdt.c of/flattree: Make unflatten_device_tree() safe to call from any arch 2010-04-28 18:20:29 -06:00
gpio.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
irq.c of: Use full node name in resource structures 2010-07-05 16:14:27 -06:00
of_i2c.c of: eliminate of_device->node and dev_archdata->{of,prom}_node 2010-05-18 16:10:45 -06:00
of_mdio.c of/irq: Move irq_of_parse_and_map() to common code 2010-06-28 12:41:33 -07:00
of_spi.c of/irq: Move irq_of_parse_and_map() to common code 2010-06-28 12:41:33 -07:00
platform.c of/device: populate platform_device (of_device) resource table on allocation 2010-07-05 16:14:29 -06:00