mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -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;
|
bd_t *bd;
|
||||||
init_fnc_t **init_fnc_ptr;
|
init_fnc_t **init_fnc_ptr;
|
||||||
gd = (gd_t *)(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET);
|
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);
|
- GENERATED_BD_INFO_SIZE);
|
||||||
#if defined(CONFIG_CMD_FLASH)
|
#if defined(CONFIG_CMD_FLASH)
|
||||||
ulong flash_size = 0;
|
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) {
|
for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) {
|
||||||
WATCHDOG_RESET();
|
WATCHDOG_RESET();
|
||||||
if ((*init_fnc_ptr) () != 0) {
|
if ((*init_fnc_ptr) () != 0)
|
||||||
hang();
|
hang();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef CONFIG_OF_CONTROL
|
#ifdef CONFIG_OF_CONTROL
|
||||||
/* For now, put this check after the console is ready */
|
/* For now, put this check after the console is ready */
|
||||||
if (fdtdec_prepare_fdt()) {
|
if (fdtdec_prepare_fdt())
|
||||||
panic("** CONFIG_OF_CONTROL defined but no FDT - please see "
|
panic("** No FDT - please see doc/README.fdt-control");
|
||||||
"doc/README.fdt-control");
|
else
|
||||||
} else
|
|
||||||
printf("DTB: 0x%x\n", (u32)gd->fdt_blob);
|
printf("DTB: 0x%x\n", (u32)gd->fdt_blob);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -201,5 +199,6 @@ void board_init_f(ulong not_used)
|
|||||||
void hang(void)
|
void hang(void)
|
||||||
{
|
{
|
||||||
puts("### ERROR ### Please RESET the board ###\n");
|
puts("### ERROR ### Please RESET the board ###\n");
|
||||||
for (;;) ;
|
for (;;)
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user