linux-mips
[Top] [All Lists]

[PATCH]2.6.10-rc1 on Sibyte

To: linux-mips@linux-mips.org
Subject: [PATCH]2.6.10-rc1 on Sibyte
From: Manish Lachwani <mlachwani@mvista.com>
Date: 25 Oct 2004 19:10:33 -0700
Cc: ralf@linux-mips.org
Organization:
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hello !

Attached patch for getting 2.6.10-rc1 running on the Broadcom Sibyte.
tested on the SWARM board

Thanks
Manish Lachwani

--- drivers/char/sb1250_duart.c.orig    2004-10-25 18:42:10.000000000 -0700
+++ drivers/char/sb1250_duart.c 2004-10-25 18:41:52.000000000 -0700
@@ -660,10 +660,7 @@
        unsigned int line = tty->index;
        unsigned long flags;
 
-       MOD_INC_USE_COUNT;
-
        if ((line >= tty->driver->num) || !sb1250_duart_present[line]) {
-               MOD_DEC_USE_COUNT;
                return -ENODEV;
        }
 
@@ -709,7 +706,6 @@
 
        spin_lock_irqsave(&open_lock, flags);
        if (tty_hung_up_p(filp)) {
-               MOD_DEC_USE_COUNT;
                spin_unlock_irqrestore(&open_lock, flags);
                return;
        }
@@ -739,7 +735,6 @@
                tty->ldisc.flush_buffer(tty);
        tty->closing = 0;
 
-       MOD_DEC_USE_COUNT;
 }
 
 
@@ -834,7 +829,6 @@
 MODULE_DESCRIPTION("SB1250 Duart serial driver");
 MODULE_AUTHOR("Justin Carlson, Broadcom Corp.");
 
-
 #ifdef CONFIG_SIBYTE_SB1250_DUART_CONSOLE
 
 /*


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