omap3: IGEP v2: Improve igep2_flash_init() function
authorEnric Balletbo i Serra <eballetbo@gmail.com>
Sat, 23 Oct 2010 16:49:00 +0000 (16:49 +0000)
committerTony Lindgren <tony@atomide.com>
Tue, 30 Nov 2010 21:48:25 +0000 (13:48 -0800)
commit235228ba21e34ba732b413c12259bac386f83283
tree81030414fee969d5c4e2bd30de2d7b584c3e6752
parentae3e033362430f2684bb3519456c88d14e182f01
omap3: IGEP v2: Improve igep2_flash_init() function

The changes are:
  - Use 'for' loop instead 'while' loop.
  - No need to initialize ret to 0, we're assigning it right after.
  - No need to check for onenandcs < GPMC_CS_NUM here, it will always be true.

Signed-off-by: Enric Balletbo i Serra <eballetbo@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-igep0020.c