Skip to content

Commit

Permalink
MIPS: Sibyte: Fix build error if CONFIG_SERIAL_SB1250_DUART is undefi…
Browse files Browse the repository at this point in the history
…ned.

This fixes kernel.org bugzilla 13596, see
http://bugzilla.kernel.org/show_bug.cgi?id=13596

Reported-by: dvice_null@yahoo.com

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
ralfbaechle committed Jun 24, 2009
1 parent ab7f6f3 commit 2e25406
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions arch/mips/sibyte/common/cfe_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ static int cfe_console_setup(struct console *cons, char *str)
setleds("u0cn");
} else if (!strcmp(consdev, "uart1")) {
setleds("u1cn");
} else
#endif
#ifdef CONFIG_VGA_CONSOLE
} else if (!strcmp(consdev, "pcconsole0")) {
setleds("pccn");
#endif
if (!strcmp(consdev, "pcconsole0")) {
setleds("pccn");
} else
#endif
return -ENODEV;
}
return 0;
Expand Down

0 comments on commit 2e25406

Please sign in to comment.