]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
lib_ppc/interrupts.c: make board_show_activity() a weak function
authorWolfgang Denk <wd@denx.de>
Tue, 9 Sep 2008 08:08:02 +0000 (10:08 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 9 Sep 2008 08:08:02 +0000 (10:08 +0200)
This allows to use show_activity() without having to
define an empty board_show_activity() function.

Signed-off-by: Wolfgang Denk <wd@denx.de>
lib_ppc/interrupts.c

index b803952badf2c88511d83dab960149959cc75d1b..c5951e99ca765d5cd19cc0d0b9045280fa628ed0 100644 (file)
 #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