[POWERPC] bootwrapper: serial_console_init() fixes
commitdc4f397d6e385c4ea0fe9732df911a86f1a78c9a
authorScott Wood <scottwood@freescale.com>
Mon, 20 Aug 2007 17:39:54 +0000 (21 03:39 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 22 Aug 2007 05:21:48 +0000 (22 15:21 +1000)
treeb447785d5fb9a03f658dbaee362861218dc1e408
parent61d3b949b70802c4f32d540b11a93128c31c67ea
[POWERPC] bootwrapper: serial_console_init() fixes

1. Search the entire compatible list for serial devices.

The serial code previously did a simple strcmp on the compatible
node; this fails when the match string is not the first compatible
listed.  Use dt_is_compatible() instead.

2. Don't call serial_edit_cmdline if getc isn't defined.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/serial.c