summaryrefslogtreecommitdiff
path: root/common/board_r.c
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2014-10-08 22:57:22 +0200
committerTom Rini <trini@ti.com>2014-10-24 16:04:59 -0400
commitdd2a6cd0f7929142066a0221cebba05cbd851199 (patch)
treec12d6e6375ea591ab33a0e9296af4715026dbbe3 /common/board_r.c
parent8590c800ee60e46f15d6085e3c1fed0d6881fc62 (diff)
common: board: use __weak
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Diffstat (limited to 'common/board_r.c')
-rw-r--r--common/board_r.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 3affb6362f4..211d7dfe118 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -60,7 +60,7 @@ DECLARE_GLOBAL_DATA_PTR;
ulong monitor_flash_len;
-int __board_flash_wp_on(void)
+__weak int board_flash_wp_on(void)
{
/*
* Most flashes can't be detected when write protection is enabled,
@@ -70,16 +70,10 @@ int __board_flash_wp_on(void)
return 0;
}
-int board_flash_wp_on(void)
- __attribute__ ((weak, alias("__board_flash_wp_on")));
-
-void __cpu_secondary_init_r(void)
+__weak void cpu_secondary_init_r(void)
{
}
-void cpu_secondary_init_r(void)
- __attribute__ ((weak, alias("__cpu_secondary_init_r")));
-
static int initr_secondary_cpu(void)
{
/*