From: Wolfgang Denk Date: Tue, 9 Sep 2008 08:08:02 +0000 (+0200) Subject: lib_ppc/interrupts.c: make board_show_activity() a weak function X-Git-Tag: v2008.10-rc1~30 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aab2bf0202c86227e3dcc8a5b58946087ebcc1af;p=u-boot 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 --- diff --git a/lib_ppc/interrupts.c b/lib_ppc/interrupts.c index b803952bad..c5951e99ca 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