Skip to content

Commit

Permalink
ARM: imx6qlogic: Cleanup board_init_f
Browse files Browse the repository at this point in the history
Per the workflow found in crt0.S, we don't need to clear BSS in
board_init_f nor do we need to call board_init_r since that will be
done for us from main when we return from board_init_f.

This patch removes the unneeded function calls from board_init_f.

Signed-off-by: Adam Ford <[email protected]>
Reviewed-by: Fabio Estevam <[email protected]>
  • Loading branch information
aford173 authored and sbabic committed Oct 8, 2019
1 parent 80be404 commit a3ecce3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions board/logicpd/imx6/imx6logic.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,5 @@ void board_init_f(ulong dummy)

/* UART clocks enabled and gd valid - init serial console */
preloader_console_init();

/* Clear the BSS. */
memset(__bss_start, 0, __bss_end - __bss_start);

/* load/boot image from boot device */
board_init_r(NULL, 0);
}
#endif

0 comments on commit a3ecce3

Please sign in to comment.