summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-06-08 13:48:15 (GMT)
committerGrant Likely <grant.likely@secretlab.ca>2010-07-05 22:14:29 (GMT)
commitac80a51e2ce5c431de9997085f33cb6093218b1f (patch)
tree4f0137a0a5848cb20de5621b098bcfc44d82707c /drivers/gpio/gpiolib.c
parent94c0931983ee9d1cd96c32d52ac64c17464f0bbd (diff)
downloadlinux-fsl-qoriq-ac80a51e2ce5c431de9997085f33cb6093218b1f.tar.xz
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
Diffstat (limited to 'drivers/gpio/gpiolib.c')
0 files changed, 0 insertions, 0 deletions