diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-01-08 05:21:45 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2013-01-28 06:54:19 +0100 |
commit | f093088214948bbf7a63e398da62904db30316d4 (patch) | |
tree | 30a8e53a25c0f698e26c5eb61e590f3afb8e4626 /arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | |
parent | 6e08385715ac50922f6447d4774558d25443eba9 (diff) | |
download | u-boot-imx-f093088214948bbf7a63e398da62904db30316d4.zip u-boot-imx-f093088214948bbf7a63e398da62904db30316d4.tar.gz u-boot-imx-f093088214948bbf7a63e398da62904db30316d4.tar.bz2 |
mxs: Use __weak annotation to simplify code
Using the __weak annotation can make the code cleaner.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c')
-rw-r--r-- | arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c b/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c index 836e636..f8392f6 100644 --- a/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c +++ b/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c @@ -27,6 +27,7 @@ #include <config.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> +#include <linux/compiler.h> #include "mxs_init.h" @@ -104,11 +105,9 @@ static uint32_t dram_vals[] = { #endif }; -void __mxs_adjust_memory_params(uint32_t *dram_vals) +__weak void mxs_adjust_memory_params(uint32_t *dram_vals) { } -void mxs_adjust_memory_params(uint32_t *dram_vals) - __attribute__((weak, alias("__mxs_adjust_memory_params"))); static void initialize_dram_values(void) { |