kernel-fxtec-pro1x/arch/powerpc/platforms
Grant Likely 594fa265e0 of/gpio: stop using device_node data pointer to find gpio_chip
Currently the kernel uses the struct device_node.data pointer to resolve
a struct gpio_chip pointer from a device tree node.  However, the .data
member doesn't provide any type checking and there aren't any rules
enforced on what it should be used for.  There's no guarantee that the
data stored in it actually points to an gpio_chip pointer.

Instead of relying on the .data pointer, this patch modifies the code
to add a lookup function which scans through the registered gpio_chips
and returns the gpio_chip that has a pointer to the specified
device_node.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Anton Vorontsov <avorontsov@ru.mvista.com>
CC: Grant Likely <grant.likely@secretlab.ca>
CC: David Brownell <dbrownell@users.sourceforge.net>
CC: Bill Gatliff <bgat@billgatliff.com>
CC: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: Jean Delvare <khali@linux-fr.org>
CC: linux-kernel@vger.kernel.org
CC: devicetree-discuss@lists.ozlabs.org
2010-07-05 16:14:30 -06:00
..
8xx 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
40x powerpc/40x: Add support for the ESTeem 195E (PPC405EP) SBC 2009-08-31 09:15:51 -04:00
44x powerpc/44x: Add basic ICON PPC440SPe board support 2010-05-12 07:50:53 -04:00
52xx of/gpio: stop using device_node data pointer to find gpio_chip 2010-07-05 16:14:30 -06:00
82xx of: Remove duplicate fields from of_platform_driver 2010-05-22 00:10:40 -06:00
83xx of/gpio: stop using device_node data pointer to find gpio_chip 2010-07-05 16:14:30 -06:00
85xx powerpc/85xx: Add P1021MDS board support 2010-05-24 21:29:25 -05:00
86xx of/gpio: Kill of_gpio_chip and add members directly to gpio_chip 2010-07-05 16:14:30 -06:00
512x powerpc/mpc5121: move PSC FIFO memory init to platform code 2010-05-25 00:23:16 -06:00
amigaone kbuild: move utsrelease.h to include/generated 2009-12-12 13:08:15 +01:00
cell powerpc/cell: Fix integer constant warning 2010-06-02 17:50:37 +10:00
chrp 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
embedded6xx Powerpc: wii: Fix typo in comment 2010-04-26 11:53:54 +02:00
iseries powerpc: Avoid bad relocations in iSeries code 2010-05-21 17:31:08 +10:00
maple 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
pasemi Merge remote branch 'origin' into secretlab/next-devicetree 2010-05-22 00:36:56 -06:00
powermac of/powerpc: Move Powermac irq quirk code into powermac pic driver code 2010-07-05 16:14:25 -06:00
prep powerpc/kconfig: Kill PPC_MULTIPLATFORM 2009-03-11 17:11:35 +11:00
ps3 of: eliminate of_device->node and dev_archdata->{of,prom}_node 2010-05-18 16:10:45 -06:00
pseries tracing: fix for tracepoint API change 2010-05-28 10:20:14 -07:00
fsl_uli1575.c PCI: add pci_bus_for_each_resource(), remove direct bus->resource[] refs 2010-02-23 09:43:31 -08:00
Kconfig powerpc/85xx: Kconfig cleanup 2009-11-20 16:45:27 -06:00
Kconfig.cputype powerpc/47x: Base ppc476 support 2010-05-05 09:11:10 -04:00
Makefile powerpc/85xx: Kconfig cleanup 2009-11-20 16:45:27 -06:00