[PATCH] ppc64: Remove dummy getc routines

Anton Blanchard anton at samba.org
Tue Sep 6 11:54:42 EST 2005


From: Milton Miller <miltonm at bga.com>

Now that xmon is fixed we should not need the dummy getc routines.

Signed-off-by: Milton Miller <miltonm at bga.com>
Signed-off-by: Anton Blanchard <anton at samba.org>

Index: build/arch/ppc64/kernel/pmac_setup.c
===================================================================
--- build.orig/arch/ppc64/kernel/pmac_setup.c	2005-09-05 20:29:29.000000000 +1000
+++ build/arch/ppc64/kernel/pmac_setup.c	2005-09-05 20:29:37.000000000 +1000
@@ -274,16 +274,6 @@
 }
 
 #ifdef CONFIG_BOOTX_TEXT
-static int dummy_getc_poll(void)
-{
-	return -1;
-}
-
-static unsigned char dummy_getc(void)
-{
-	return 0;
-}
-
 static void btext_putc(unsigned char c)
 {
 	btext_drawchar(c);
@@ -348,8 +338,8 @@
 		init_boot_display();
 
 		ppc_md.udbg_putc = btext_putc;
-		ppc_md.udbg_getc = dummy_getc;
-		ppc_md.udbg_getc_poll = dummy_getc_poll;
+		ppc_md.udbg_getc = NULL;
+		ppc_md.udbg_getc_poll = NULL;
 #endif /* CONFIG_BOOTX_TEXT */
 	}
 



More information about the Linuxppc64-dev mailing list