ARM: OMAP2+: Simplify code configuring ONENAND devices
authorJon Hunter <jon-hunter@ti.com>
Thu, 21 Feb 2013 21:20:53 +0000 (15:20 -0600)
committerJon Hunter <jon-hunter@ti.com>
Mon, 1 Apr 2013 19:53:40 +0000 (14:53 -0500)
commitbe9f10c04fb13d32fc30d599c1971a10916a2209
tree8ca8daaa1e79c3f04cc930ad589b4d50fff29226
parentf5d8edaf1d06e922a3c3d75c52ef5628ceec32c4
ARM: OMAP2+: Simplify code configuring ONENAND devices

The OMAP2+ code that configures the GPMC for ONENAND devices is copying
structures between functions unnecessarily. Avoid this by passing
pointers instead and simplify the code.

A pointer to structure "omap_onenand_platform_data" is passed to the
function omap2_onenand_calc_sync_timings(), but only the flags member
of the structure is used. Simplify the code by only passing the flags
member and not the entire structure.

Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
arch/arm/mach-omap2/gpmc-onenand.c