mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
board_f/r: Use static const for the init sequences
These tables should be declared static const. Unfortunately the table in board_r is updated on machines with manual relocation. Update them. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
530f27eab5
commit
4acff45247
2 changed files with 3 additions and 3 deletions
|
@ -846,7 +846,7 @@ __weak int arch_cpu_init_dm(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static init_fnc_t init_sequence_f[] = {
|
||||
static const init_fnc_t init_sequence_f[] = {
|
||||
#ifdef CONFIG_SANDBOX
|
||||
setup_ram_buf,
|
||||
#endif
|
||||
|
@ -1098,7 +1098,7 @@ void board_init_f(ulong boot_flags)
|
|||
* NOTE: At present only x86 uses this route, but it is intended that
|
||||
* all archs will move to this when generic relocation is implemented.
|
||||
*/
|
||||
static init_fnc_t init_sequence_f_r[] = {
|
||||
static const init_fnc_t init_sequence_f_r[] = {
|
||||
#if !CONFIG_IS_ENABLED(X86_64)
|
||||
init_cache_f_r,
|
||||
#endif
|
||||
|
|
|
@ -737,7 +737,7 @@ static int run_main_loop(void)
|
|||
*
|
||||
* TODO: perhaps reset the watchdog in the initcall function after each call?
|
||||
*/
|
||||
init_fnc_t init_sequence_r[] = {
|
||||
static init_fnc_t init_sequence_r[] = {
|
||||
initr_trace,
|
||||
initr_reloc,
|
||||
/* TODO: could x86/PPC have this also perhaps? */
|
||||
|
|
Loading…
Reference in a new issue