mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
microblaze: fix style in board.c
Make microblaze's board.c checkpatch clean. Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com> Reviewed-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
0472fbfd32
commit
50ffb1174c
@ -75,7 +75,7 @@ void board_init_f(ulong not_used)
|
||||
bd_t *bd;
|
||||
init_fnc_t **init_fnc_ptr;
|
||||
gd = (gd_t *)(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET);
|
||||
bd = (bd_t *) (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET \
|
||||
bd = (bd_t *)(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET
|
||||
- GENERATED_BD_INFO_SIZE);
|
||||
#if defined(CONFIG_CMD_FLASH)
|
||||
ulong flash_size = 0;
|
||||
@ -114,17 +114,15 @@ void board_init_f(ulong not_used)
|
||||
|
||||
for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) {
|
||||
WATCHDOG_RESET();
|
||||
if ((*init_fnc_ptr) () != 0) {
|
||||
if ((*init_fnc_ptr) () != 0)
|
||||
hang();
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF_CONTROL
|
||||
/* For now, put this check after the console is ready */
|
||||
if (fdtdec_prepare_fdt()) {
|
||||
panic("** CONFIG_OF_CONTROL defined but no FDT - please see "
|
||||
"doc/README.fdt-control");
|
||||
} else
|
||||
if (fdtdec_prepare_fdt())
|
||||
panic("** No FDT - please see doc/README.fdt-control");
|
||||
else
|
||||
printf("DTB: 0x%x\n", (u32)gd->fdt_blob);
|
||||
#endif
|
||||
|
||||
@ -201,5 +199,6 @@ void board_init_f(ulong not_used)
|
||||
void hang(void)
|
||||
{
|
||||
puts("### ERROR ### Please RESET the board ###\n");
|
||||
for (;;) ;
|
||||
for (;;)
|
||||
;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user