]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] powerpc: powermac adb fix dependency on btext_drawchar
authorAndy Whitcroft <apw@shadowen.org>
Wed, 30 Nov 2005 17:34:50 +0000 (17:34 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 03:51:15 +0000 (14:51 +1100)
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>
arch/powerpc/platforms/powermac/udbg_adb.c

index e51de55b2d6e771c813ca353a86e197da03929fa..d1c40e27e37dc4fab817119ea25597798491da65 100644 (file)
@@ -171,9 +171,12 @@ int udbg_adb_init(int force_btext)
        udbg_adb_old_getc_poll = udbg_getc_poll;
 
        /* Check if our early init was already called */
-       if (udbg_adb_old_putc == udbg_adb_putc ||
-           udbg_adb_old_putc == btext_drawchar)
+       if (udbg_adb_old_putc == udbg_adb_putc)
                udbg_adb_old_putc = NULL;
+#ifdef CONFIG_BOOTX_TEXT
+       if (udbg_adb_old_putc == btext_drawchar)
+               udbg_adb_old_putc = NULL;
+#endif
 
        /* Set ours as output */
        udbg_putc = udbg_adb_putc;