diff options
author | Andy Whitcroft <apw@shadowen.org> | 2005-11-30 12:34:50 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-08 22:51:15 -0500 |
commit | 52020d2bda9fe447bb50674a2e39e4064b6a10b5 (patch) | |
tree | 2924448f9f57874c6e2a778a971ff5a305b8cd42 /arch/powerpc/platforms/powermac/udbg_adb.c | |
parent | 2bf6a8fa21570f37fd1789610da30f70a05ac5e3 (diff) |
[PATCH] powerpc: powermac adb fix dependency on btext_drawchar
udbg_adb_init() has become dependent on btext_drawchar, even when
BOOTX_TEXT support is not selected. This leads to the error below.
Make the check dependant on BOOTX_TEXT.
LD .tmp_vmlinux1
arch/powerpc/platforms/built-in.o(.toc1+0xa40): undefined
reference to `btext_drawchar'
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/powermac/udbg_adb.c')
-rw-r--r-- | arch/powerpc/platforms/powermac/udbg_adb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powermac/udbg_adb.c b/arch/powerpc/platforms/powermac/udbg_adb.c index e51de55b2d6e..d1c40e27e37d 100644 --- a/arch/powerpc/platforms/powermac/udbg_adb.c +++ b/arch/powerpc/platforms/powermac/udbg_adb.c | |||
@@ -171,9 +171,12 @@ int udbg_adb_init(int force_btext) | |||
171 | udbg_adb_old_getc_poll = udbg_getc_poll; | 171 | udbg_adb_old_getc_poll = udbg_getc_poll; |
172 | 172 | ||
173 | /* Check if our early init was already called */ | 173 | /* Check if our early init was already called */ |
174 | if (udbg_adb_old_putc == udbg_adb_putc || | 174 | if (udbg_adb_old_putc == udbg_adb_putc) |
175 | udbg_adb_old_putc == btext_drawchar) | ||
176 | udbg_adb_old_putc = NULL; | 175 | udbg_adb_old_putc = NULL; |
176 | #ifdef CONFIG_BOOTX_TEXT | ||
177 | if (udbg_adb_old_putc == btext_drawchar) | ||
178 | udbg_adb_old_putc = NULL; | ||
179 | #endif | ||
177 | 180 | ||
178 | /* Set ours as output */ | 181 | /* Set ours as output */ |
179 | udbg_putc = udbg_adb_putc; | 182 | udbg_putc = udbg_adb_putc; |