android_kernel_motorola_sm6225/arch/powerpc/platforms/83xx
Anton Vorontsov a19e3da5bc of/gpio: Kill of_gpio_chip and add members directly to gpio_chip
The OF gpio infrastructure is great for describing GPIO connections within
the device tree.  However, using a GPIO binding still requires changes to
the gpio controller just to add an of_gpio structure.  In most cases, the
gpio controller doesn't actually need any special support and the simple
OF gpio mapping function is more than sufficient.  Additional, the current
scheme of using of_gpio_chip requires a convoluted scheme to maintain
1:1 mappings between of_gpio_chip and gpio_chip instances.

If the struct of_gpio_chip data members were moved into struct gpio_chip,
then it would simplify the processing of OF gpio bindings, and it would
make it trivial to use device tree OF connections on existing gpiolib
controller drivers.

This patch eliminates the of_gpio_chip structure and moves the relevant
fields into struct gpio_chip (conditional on CONFIG_OF_GPIO).  This move
simplifies the existing code and prepares for adding automatic device tree
support to existing drivers.

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>
2010-07-05 16:14:30 -06:00
..
asp834x.c powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:04 -05:00
Kconfig powerpc/83xx: Add support for MPC8377E-WLAN boards 2009-08-20 10:27:43 +10:00
kmeter1.c 83xx: add support for the kmeter1 board. 2009-06-15 22:15:09 -05:00
Makefile 83xx: add support for the kmeter1 board. 2009-06-15 22:15:09 -05:00
mcu_mpc8349emitx.c of/gpio: Kill of_gpio_chip and add members directly to gpio_chip 2010-07-05 16:14:30 -06:00
misc.c [POWERPC] 83xx: Don't call ioremap in the reset function 2007-01-26 00:37:11 -06:00
mpc83xx.h powerpc/83xx: Add eSDHC support for MPC837xE-RDB/WLAN boards 2009-08-20 10:27:51 +10:00
mpc831x_rdb.c powerpc/83xx: Add MCU LEDs support for MPC837xRDB and MPC8315RDB boards 2010-05-17 10:55:32 -05:00
mpc832x_mds.c powerpc/83xx: Fix sparse warnings in board files 2008-12-30 11:13:41 -06:00
mpc832x_rdb.c powerpc: Fix build of some FSL platforms 2009-11-24 17:00:27 +11:00
mpc834x_itx.c powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:04 -05:00
mpc834x_mds.c powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:04 -05:00
mpc836x_mds.c powerpc/83xx: Add USB Host/Gadget support for MPC8360E-MDS boards 2008-12-30 11:13:46 -06:00
mpc836x_rdk.c powerpc/83xx: Fix few build errors with CONFIG_QUICC_ENGINE=n 2008-12-30 11:14:05 -06:00
mpc837x_mds.c powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:04 -05:00
mpc837x_rdb.c powerpc/83xx: Add MCU LEDs support for MPC837xRDB and MPC8315RDB boards 2010-05-17 10:55:32 -05:00
sbc834x.c powerpc/83xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:04 -05:00
suspend-asm.S powerpc/mpc83xx: Power Management support 2008-07-16 17:57:30 -05:00
suspend.c of: Remove duplicate fields from of_platform_driver 2010-05-22 00:10:40 -06:00
usb.c powerpc/mpc83xx: Fix usb mux setup for mpc834x 2009-06-15 21:45:31 -05:00