omap: cleanup NAND platform data
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 3 Jun 2011 19:56:33 +0000 (19:56 +0000)
committerTony Lindgren <tony@atomide.com>
Wed, 29 Jun 2011 08:11:37 +0000 (01:11 -0700)
commit7a559c7882db55c7a40dab19ea43ad747a51185a
treedd28f74188fa81f857491215a4e4c099137e770b
parentfd4a0286cecd3b1e15771e02bc36bd8494a4a1d8
omap: cleanup NAND platform data

omap_nand_platform_data fields 'options', 'gpio_irq', 'nand_setup' and
'dma_channel' are never referenced by the NAND driver, yet various
board files are initializing those fields. This is both incorrect and
confusing, so remove them. This allows to get rid of a global
variable in gpmc-nand.c.

This also corrects an issue where some boards are trying to pass NAND
16bit flag through .options, but the driver is using .devsize instead
and ignoring .options.

Finally, .dev_ready is treated as a flag by the driver, so make it bool
instead of a function pointer.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-cm-t35.c
arch/arm/mach-omap2/board-cm-t3517.c
arch/arm/mach-omap2/board-flash.c
arch/arm/mach-omap2/common-board-devices.c
arch/arm/mach-omap2/gpmc-nand.c
arch/arm/plat-omap/include/plat/nand.h