summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-09-09 10:08:02 +0200
committerWolfgang Denk <wd@denx.de>2008-09-09 10:08:02 +0200
commitaab2bf0202c86227e3dcc8a5b58946087ebcc1af (patch)
tree8eb2937fbd3837a84cce64862794873e089cc41b
parentfe876787f8743883ce58fed61525eaa2f34da4c5 (diff)
downloadu-boot-imx-aab2bf0202c86227e3dcc8a5b58946087ebcc1af.zip
u-boot-imx-aab2bf0202c86227e3dcc8a5b58946087ebcc1af.tar.gz
u-boot-imx-aab2bf0202c86227e3dcc8a5b58946087ebcc1af.tar.bz2
lib_ppc/interrupts.c: make board_show_activity() a weak function
This allows to use show_activity() without having to define an empty board_show_activity() function. Signed-off-by: Wolfgang Denk <wd@denx.de>
-rw-r--r--lib_ppc/interrupts.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib_ppc/interrupts.c b/lib_ppc/interrupts.c
index b803952..c5951e9 100644
--- a/lib_ppc/interrupts.c
+++ b/lib_ppc/interrupts.c
@@ -32,7 +32,12 @@
#endif
#ifdef CONFIG_SHOW_ACTIVITY
- extern void board_show_activity (ulong);
+void board_show_activity (ulong) __attribute__((weak, alias("__board_show_activity")));
+
+void __board_show_activity (ulong dummy)
+{
+ return;
+}
#endif /* CONFIG_SHOW_ACTIVITY */
#ifndef CFG_WATCHDOG_FREQ