[LV] [PATCH 2.6.18] dz: Remove devfs + dynamic dev fix
Maciej W. Rozycki
macro at linux-mips.org
Tue Feb 27 10:56:36 CET 2007
This is a set of changes to update the driver now that the devfs support
has been removed. Also the TTY_DRIVER_DYNAMIC_DEV flag is added so that
tty_register_device() may be called directly.
Signed-off-by: Maciej W. Rozycki <macro at linux-mips.org>
---
Of course the two dz drivers should be merged eventually -- the other one
has already been moved to the serial subsystem. I have a DECstation 2100
machine promised, which uses the other one, so I'll have a look at the
issue once I get the system.
But for now, please apply.
Maciej
patch-mips-2.6.18-20060920-vax-dz-1
diff -up --recursive --new-file linux-mips-2.6.18-20060920.macro/drivers/vax/char/dz.c linux-mips-2.6.18-20060920/drivers/vax/char/dz.c
--- linux-mips-2.6.18-20060920.macro/drivers/vax/char/dz.c 2007-01-20 04:40:53.000000000 +0000
+++ linux-mips-2.6.18-20060920/drivers/vax/char/dz.c 2007-01-28 06:26:21.000000000 +0000
@@ -1292,7 +1292,6 @@ static int __init dz_probe(struct vsbus_
show_serial_version();
serial_driver->owner = THIS_MODULE;
- serial_driver->devfs_name = "tts/";
serial_driver->name = "ttyS";
serial_driver->major = TTY_MAJOR;
serial_driver->minor_start = 64;
@@ -1301,7 +1300,7 @@ static int __init dz_probe(struct vsbus_
serial_driver->init_termios = tty_std_termios;
serial_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL |
CLOCAL;
- serial_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS;
+ serial_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV;
tty_set_operations(serial_driver, &serial_ops);
if (tty_register_driver(serial_driver))
_______________________________________________
Linux-Vax mailing list
Linux-Vax at pergamentum.com
http://www.pergamentum.com/mailman/listinfo/linux-vax
More information about the Vax-linux
mailing list