patch-2.1.69 linux/drivers/char/tty_io.c

Next file: linux/drivers/misc/parport_ieee1284.c
Previous file: linux/drivers/char/serial.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.68/linux/drivers/char/tty_io.c linux/drivers/char/tty_io.c
@@ -1742,8 +1742,13 @@
 		else
 			i += 15;
 	}
-	if (i==15 && tty->alt_speed)
+	if (i==15 && tty->alt_speed) {
+		if (!tty->warned) {
+			printk("Use of setserial/setrocket to set SPD_* flags is deprecated\n");
+			tty->warned = 1;
+		}
 		return(tty->alt_speed);
+	}
 	
 	return baud_table[i];
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov