Commit cb42d63554a9a87fa7d1bb7349a5af1d1ad3da91

Authored by Hans de Goede
1 parent 5c965ed901

sunxi: Simplify spl board_init_f function

crt0.S will both memset the bss sectioan and call board_init_r for us,
so there is no need to do either ourselves.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>

Showing 1 changed file with 0 additions and 5 deletions Side-by-side Diff

arch/arm/cpu/armv7/sunxi/board.c
... ... @@ -198,11 +198,6 @@
198 198 i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
199 199 #endif
200 200 sunxi_board_init();
201   -
202   - /* Clear the BSS. */
203   - memset(__bss_start, 0, __bss_end - __bss_start);
204   -
205   - board_init_r(NULL, 0);
206 201 }
207 202 #endif
208 203