[POWERPC] Fix section mismatches in udbg_adb.c

The functions are only called from __init functions.

WARNING: vmlinux.o(.text+0x45ed0): Section mismatch: reference to .init.text:.btext_find_display (between '.udbg_adb_init_early' and '.udbg_adb_init')
WARNING: vmlinux.o(.text+0x45f9c): Section mismatch: reference to .init.text:.btext_find_display (between '.udbg_adb_init' and '.udbg_adb_getc_poll')
WARNING: vmlinux.o(.text+0x46000): Section mismatch: reference to .init.text:.find_via_pmu (between '.udbg_adb_init' and '.udbg_adb_getc_poll')

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Stephen Rothwell 2007-08-15 20:55:57 +10:00 committed by Paul Mackerras
parent 109b60f0bc
commit 124d795d16

View file

@ -149,7 +149,7 @@ static void udbg_adb_putc(char c)
return udbg_adb_old_putc(c); return udbg_adb_old_putc(c);
} }
void udbg_adb_init_early(void) void __init udbg_adb_init_early(void)
{ {
#ifdef CONFIG_BOOTX_TEXT #ifdef CONFIG_BOOTX_TEXT
if (btext_find_display(1) == 0) { if (btext_find_display(1) == 0) {
@ -159,7 +159,7 @@ void udbg_adb_init_early(void)
#endif #endif
} }
int udbg_adb_init(int force_btext) int __init udbg_adb_init(int force_btext)
{ {
struct device_node *np; struct device_node *np;