[PATCH 14/61] bootwrapper: Don't call serial_edit_cmdline if getc isn't defined.

Scott Wood scottwood at freescale.com
Wed Jul 18 11:33:14 EST 2007


Signed-off-by: Scott Wood <scottwood at freescale.com>
---
 arch/powerpc/boot/serial.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/boot/serial.c b/arch/powerpc/boot/serial.c
index c551bac..1c27110 100644
--- a/arch/powerpc/boot/serial.c
+++ b/arch/powerpc/boot/serial.c
@@ -129,7 +129,7 @@ int serial_console_init(void)
 	if (!rc) {
 		console_ops.open = serial_open;
 		console_ops.write = serial_write;
-		console_ops.edit_cmdline = serial_edit_cmdline;
+		console_ops.edit_cmdline = serial_cd.getc ? serial_edit_cmdline : NULL;
 		console_ops.close = serial_close;
 		console_ops.data = &serial_cd;
 
-- 
1.5.0.3




More information about the Linuxppc-dev mailing list