linux-mips
[Top] [All Lists]

Sync SiByte system code to the new DUART driver

To: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Subject: Sync SiByte system code to the new DUART driver
From: "Imre Kaloz" <kaloz@openwrt.org>
Date: Thu, 02 Aug 2007 12:58:50 +0200
Organization: OpenWrt - Wireless Freedom
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
The new upstream SiByte DUART driver uses a different config option then
the old one, so the SiByte target doesn't compile currently.
This patch fixes the problem.

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

---

diff --git a/arch/mips/sibyte/cfe/console.c b/arch/mips/sibyte/cfe/console.c
index c6ec748..4cec9d7 100644
--- a/arch/mips/sibyte/cfe/console.c
+++ b/arch/mips/sibyte/cfe/console.c
@@ -46,7 +46,7 @@ static int cfe_console_setup(struct console *cons, char *str)
        /* XXXKW think about interaction with 'console=' cmdline arg */
        /* If none of the console options are configured, the build will break. 
*/
        if (cfe_getenv("BOOT_CONSOLE", consdev, 32) >= 0) {
-#ifdef CONFIG_SIBYTE_SB1250_DUART
+#ifdef CONFIG_SERIAL_SB1250_DUART
                if (!strcmp(consdev, "uart0")) {
                        setleds("u0cn");
                } else if (!strcmp(consdev, "uart1")) {

<Prev in Thread] Current Thread [Next in Thread>