summaryrefslogtreecommitdiffstats
path: root/arch/mips/sibyte
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2009-06-22 17:17:52 +0200
committerRalf Baechle <ralf@linux-mips.org>2009-06-24 19:34:39 +0200
commit2e25406fb878e2313a9d8e302ed7ff3c2831198f (patch)
treeed48a9d71b135694e1c09f1595f758269baf9778 /arch/mips/sibyte
parentMIPS: MIPSsim: Fix build error if MSC01E_INT_BASE is undefined. (diff)
downloadlinux-2e25406fb878e2313a9d8e302ed7ff3c2831198f.tar.xz
linux-2e25406fb878e2313a9d8e302ed7ff3c2831198f.zip
MIPS: Sibyte: Fix build error if CONFIG_SERIAL_SB1250_DUART is undefined.
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>
Diffstat (limited to 'arch/mips/sibyte')
-rw-r--r--arch/mips/sibyte/common/cfe_console.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/mips/sibyte/common/cfe_console.c b/arch/mips/sibyte/common/cfe_console.c
index 81e3d54376e9..1ad2da103fe9 100644
--- a/arch/mips/sibyte/common/cfe_console.c
+++ b/arch/mips/sibyte/common/cfe_console.c
@@ -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;