diff options
author | Simon Glass <sjg@chromium.org> | 2017-01-16 07:03:50 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2017-02-06 11:38:46 +0800 |
commit | 4acff4524783d860d873e131057602e43b8294f9 (patch) | |
tree | 7bca13eee65666129d1a4bb3247cc45690e5eb1b /common/board_f.c | |
parent | 530f27eab5df8bcebfb7cb20a342f97e297ec0e8 (diff) | |
download | u-boot-4acff4524783d860d873e131057602e43b8294f9.tar.gz u-boot-4acff4524783d860d873e131057602e43b8294f9.tar.xz u-boot-4acff4524783d860d873e131057602e43b8294f9.zip |
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>
Diffstat (limited to 'common/board_f.c')
-rw-r--r-- | common/board_f.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/board_f.c b/common/board_f.c index 88ecfe02db..62cdd8cf8f 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -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 |