board/rpxsuper/flash.c: minimal CodingStyle cleanup

Really minimal and local, just good enough to make checkpatch not
complain about the changes in the following commit.

Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
Wolfgang Denk 2011-11-05 05:13:12 +00:00
parent d72512406a
commit 2bf22a5431

View File

@ -53,12 +53,12 @@ unsigned long flash_init (void)
int i; int i;
/* Init: no FLASHes known */ /* Init: no FLASHes known */
for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) { for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i)
flash_info[i].flash_id = FLASH_UNKNOWN; flash_info[i].flash_id = FLASH_UNKNOWN;
}
/* for now, only support the 4 MB Flash SIMM */ /* for now, only support the 4 MB Flash SIMM */
size = flash_get_size((vu_long *)CONFIG_SYS_FLASH0_BASE, &flash_info[0]); size = flash_get_size((vu_long *) CONFIG_SYS_FLASH0_BASE,
&flash_info[0]);
/* /*
* protect monitor and environment sectors * protect monitor and environment sectors
@ -77,8 +77,7 @@ unsigned long flash_init (void)
#endif #endif
flash_protect(FLAG_PROTECT_SET, flash_protect(FLAG_PROTECT_SET,
CONFIG_ENV_ADDR, CONFIG_ENV_ADDR,
CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[0]);
&flash_info[0]);
#endif #endif
return /*size */ (CONFIG_SYS_FLASH0_SIZE * 1024 * 1024); return /*size */ (CONFIG_SYS_FLASH0_SIZE * 1024 * 1024);