From: Jon Hunter Date: Thu, 21 Feb 2013 21:20:53 +0000 (-0600) Subject: ARM: OMAP2+: Simplify code configuring ONENAND devices X-Git-Tag: omap-for-v3.10/gpmc-signed^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be9f10c04fb13d32fc30d599c1971a10916a2209;p=pandora-kernel.git 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 Tested-by: Ezequiel Garcia --- Reading git-diff-tree failed