linux/arch/microblaze/kernel
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
..
cpu microblaze: Remove compilation warnings in cache macro 2010-05-13 10:55:47 +02:00
asm-offsets.c microblaze: Remove "cache" optimized copy_page function 2010-05-06 11:21:58 +02:00
dma.c microblaze: Fix sg_dma_len() regression 2010-06-09 16:20:54 +02:00
early_printk.c
entry-nommu.S microblaze: re-enable interrupts before calling schedule 2010-05-13 09:21:01 +02:00
entry.S microblaze: entry.S use delay slot for return handlers 2010-03-11 14:26:13 +01:00
exceptions.c microblaze: fix divide by zero exception message 2010-05-06 11:21:58 +02:00
ftrace.c microblaze: Fix ftrace_update_ftrace_func panic 2010-04-07 07:27:25 +02:00
head.S microblaze: Quiet section mismatch warnings 2010-05-06 11:21:57 +02:00
heartbeat.c
hw_exception_handler.S microblaze: Use instruction with delay slot 2010-04-01 08:38:23 +02:00
init_task.c
intc.c
irq.c of/irq: Move irq_of_parse_and_map() to common code 2010-06-28 12:41:33 -07:00
Makefile of: Merge of_device_alloc() and of_device_make_bus_id() 2010-07-05 16:14:29 -06:00
mcount.S
microblaze_ksyms.c microblaze: export assembly functions used by modules 2010-05-13 12:11:42 +02:00
misc.S microblaze: Remove "cache" optimized copy_page function 2010-05-06 11:21:58 +02:00
module.c microblaze: Fix module loading on system with WB cache 2010-05-14 07:43:38 +02:00
of_platform.c of/device: Merge of_platform_bus_probe() 2010-07-05 16:14:28 -06:00
process.c microblaze: Adding likely macros 2010-04-01 08:38:24 +02:00
prom_parse.c of/address: Merge all of the bus translation code 2010-07-05 16:14:26 -06:00
prom.c
ptrace.c microblaze: Remove unused variable from ptrace 2010-04-07 15:47:55 +02:00
reset.c of/gpio: Kill of_gpio_chip and add members directly to gpio_chip 2010-07-05 16:14:30 -06:00
selfmod.c
setup.c microblaze: Print early printk information to log buffer 2010-04-01 08:38:25 +02:00
signal.c
stacktrace.c
sys_microblaze.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
syscall_table.S
timer.c
traps.c microblaze: Remove ancient code 2010-05-06 11:21:58 +02:00
vmlinux.lds.S microblaze: Quiet section mismatch warnings 2010-05-06 11:21:57 +02:00