Skip to contentSkip to conversation

[2.4] Rocketport driver compile fix

PATCH New Oleg Drokin 1 participant 1 message Sep 11, 2003 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 [2.4] Rocketport driver compile fix

Hello!

Rocketport driver does not compile in latest 2.4 bk, it seems to assume that tty->count is of atomic type which is no longer true.

Seems that this patch is needed now.

===== drivers/char/rocket.c 1.9 vs edited =====

drivers/char/rocket.c +1 -1
@@ -1052,7 +1052,7 @@
 		restore_flags(flags);
 		return;
 	}
-	if ((atomic_read(&tty->count) == 1) && (info->count != 1)) {
+	if ((tty->count == 1) && (info->count != 1)) {
 		/*
 		 * Uh, oh.  tty->count is 1, which means that the tty
 		 * structure will be freed.  Info->count should always

Bye,
Oleg