mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-05 19:10:53 +09:00
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:
parent
d72512406a
commit
2bf22a5431
@ -53,12 +53,12 @@ unsigned long flash_init (void)
|
||||
int i;
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
/* 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
|
||||
@ -77,8 +77,7 @@ unsigned long flash_init (void)
|
||||
#endif
|
||||
flash_protect(FLAG_PROTECT_SET,
|
||||
CONFIG_ENV_ADDR,
|
||||
CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1,
|
||||
&flash_info[0]);
|
||||
CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[0]);
|
||||
#endif
|
||||
|
||||
return /*size */ (CONFIG_SYS_FLASH0_SIZE * 1024 * 1024);
|
||||
|
Loading…
Reference in New Issue
Block a user