[PATCH]2.6.10-rc1 on Sibyte

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
 
 /*



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux