diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/ip2/ip2main.c | 2 | ||||
-rw-r--r-- | drivers/char/pty.c | 4 | ||||
-rw-r--r-- | drivers/char/rocket.c | 4 | ||||
-rw-r--r-- | drivers/char/tty_io.c | 8 |
4 files changed, 9 insertions, 9 deletions
diff --git a/drivers/char/ip2/ip2main.c b/drivers/char/ip2/ip2main.c index 2db55d1f0403..8619542766cb 100644 --- a/drivers/char/ip2/ip2main.c +++ b/drivers/char/ip2/ip2main.c | |||
@@ -678,7 +678,7 @@ ip2_loadmain(int *iop, int *irqp, unsigned char *firmware, int firmsize) | |||
678 | ip2_tty_driver->subtype = SERIAL_TYPE_NORMAL; | 678 | ip2_tty_driver->subtype = SERIAL_TYPE_NORMAL; |
679 | ip2_tty_driver->init_termios = tty_std_termios; | 679 | ip2_tty_driver->init_termios = tty_std_termios; |
680 | ip2_tty_driver->init_termios.c_cflag = B9600|CS8|CREAD|HUPCL|CLOCAL; | 680 | ip2_tty_driver->init_termios.c_cflag = B9600|CS8|CREAD|HUPCL|CLOCAL; |
681 | ip2_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS; | 681 | ip2_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
682 | tty_set_operations(ip2_tty_driver, &ip2_ops); | 682 | tty_set_operations(ip2_tty_driver, &ip2_ops); |
683 | 683 | ||
684 | ip2trace (ITRC_NO_PORT, ITRC_INIT, 3, 0 ); | 684 | ip2trace (ITRC_NO_PORT, ITRC_INIT, 3, 0 ); |
diff --git a/drivers/char/pty.c b/drivers/char/pty.c index d3a5092402c2..f373d0155a77 100644 --- a/drivers/char/pty.c +++ b/drivers/char/pty.c | |||
@@ -368,7 +368,7 @@ static void __init unix98_pty_init(void) | |||
368 | ptm_driver->init_termios.c_cflag = B38400 | CS8 | CREAD; | 368 | ptm_driver->init_termios.c_cflag = B38400 | CS8 | CREAD; |
369 | ptm_driver->init_termios.c_lflag = 0; | 369 | ptm_driver->init_termios.c_lflag = 0; |
370 | ptm_driver->flags = TTY_DRIVER_RESET_TERMIOS | TTY_DRIVER_REAL_RAW | | 370 | ptm_driver->flags = TTY_DRIVER_RESET_TERMIOS | TTY_DRIVER_REAL_RAW | |
371 | TTY_DRIVER_NO_DEVFS | TTY_DRIVER_DEVPTS_MEM; | 371 | TTY_DRIVER_DYNAMIC_DEV | TTY_DRIVER_DEVPTS_MEM; |
372 | ptm_driver->other = pts_driver; | 372 | ptm_driver->other = pts_driver; |
373 | tty_set_operations(ptm_driver, &pty_ops); | 373 | tty_set_operations(ptm_driver, &pty_ops); |
374 | ptm_driver->ioctl = pty_unix98_ioctl; | 374 | ptm_driver->ioctl = pty_unix98_ioctl; |
@@ -383,7 +383,7 @@ static void __init unix98_pty_init(void) | |||
383 | pts_driver->init_termios = tty_std_termios; | 383 | pts_driver->init_termios = tty_std_termios; |
384 | pts_driver->init_termios.c_cflag = B38400 | CS8 | CREAD; | 384 | pts_driver->init_termios.c_cflag = B38400 | CS8 | CREAD; |
385 | pts_driver->flags = TTY_DRIVER_RESET_TERMIOS | TTY_DRIVER_REAL_RAW | | 385 | pts_driver->flags = TTY_DRIVER_RESET_TERMIOS | TTY_DRIVER_REAL_RAW | |
386 | TTY_DRIVER_NO_DEVFS | TTY_DRIVER_DEVPTS_MEM; | 386 | TTY_DRIVER_DYNAMIC_DEV | TTY_DRIVER_DEVPTS_MEM; |
387 | pts_driver->other = ptm_driver; | 387 | pts_driver->other = ptm_driver; |
388 | tty_set_operations(pts_driver, &pty_ops); | 388 | tty_set_operations(pts_driver, &pty_ops); |
389 | 389 | ||
diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c index ed511ec9b578..0ac131881322 100644 --- a/drivers/char/rocket.c +++ b/drivers/char/rocket.c | |||
@@ -2426,7 +2426,7 @@ static int __init rp_init(void) | |||
2426 | */ | 2426 | */ |
2427 | 2427 | ||
2428 | rocket_driver->owner = THIS_MODULE; | 2428 | rocket_driver->owner = THIS_MODULE; |
2429 | rocket_driver->flags = TTY_DRIVER_NO_DEVFS; | 2429 | rocket_driver->flags = TTY_DRIVER_DYNAMIC_DEV; |
2430 | rocket_driver->name = "ttyR"; | 2430 | rocket_driver->name = "ttyR"; |
2431 | rocket_driver->driver_name = "Comtrol RocketPort"; | 2431 | rocket_driver->driver_name = "Comtrol RocketPort"; |
2432 | rocket_driver->major = TTY_ROCKET_MAJOR; | 2432 | rocket_driver->major = TTY_ROCKET_MAJOR; |
@@ -2437,7 +2437,7 @@ static int __init rp_init(void) | |||
2437 | rocket_driver->init_termios.c_cflag = | 2437 | rocket_driver->init_termios.c_cflag = |
2438 | B9600 | CS8 | CREAD | HUPCL | CLOCAL; | 2438 | B9600 | CS8 | CREAD | HUPCL | CLOCAL; |
2439 | #ifdef ROCKET_SOFT_FLOW | 2439 | #ifdef ROCKET_SOFT_FLOW |
2440 | rocket_driver->flags |= TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS; | 2440 | rocket_driver->flags |= TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
2441 | #endif | 2441 | #endif |
2442 | tty_set_operations(rocket_driver, &rocket_ops); | 2442 | tty_set_operations(rocket_driver, &rocket_ops); |
2443 | 2443 | ||
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index ebe1158e6c6e..6c79ff3030fa 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c | |||
@@ -2963,8 +2963,8 @@ static struct class *tty_class; | |||
2963 | * Returns a pointer to the class device (or ERR_PTR(-EFOO) on error). | 2963 | * Returns a pointer to the class device (or ERR_PTR(-EFOO) on error). |
2964 | * | 2964 | * |
2965 | * This call is required to be made to register an individual tty device if | 2965 | * This call is required to be made to register an individual tty device if |
2966 | * the tty driver's flags have the TTY_DRIVER_NO_DEVFS bit set. If that | 2966 | * the tty driver's flags have the TTY_DRIVER_DYNAMIC_DEV bit set. If that |
2967 | * bit is not set, this function should not be called. | 2967 | * bit is not set, this function should not be called by a tty driver. |
2968 | */ | 2968 | */ |
2969 | struct class_device *tty_register_device(struct tty_driver *driver, | 2969 | struct class_device *tty_register_device(struct tty_driver *driver, |
2970 | unsigned index, struct device *device) | 2970 | unsigned index, struct device *device) |
@@ -3117,7 +3117,7 @@ int tty_register_driver(struct tty_driver *driver) | |||
3117 | 3117 | ||
3118 | list_add(&driver->tty_drivers, &tty_drivers); | 3118 | list_add(&driver->tty_drivers, &tty_drivers); |
3119 | 3119 | ||
3120 | if ( !(driver->flags & TTY_DRIVER_NO_DEVFS) ) { | 3120 | if ( !(driver->flags & TTY_DRIVER_DYNAMIC_DEV) ) { |
3121 | for(i = 0; i < driver->num; i++) | 3121 | for(i = 0; i < driver->num; i++) |
3122 | tty_register_device(driver, i, NULL); | 3122 | tty_register_device(driver, i, NULL); |
3123 | } | 3123 | } |
@@ -3160,7 +3160,7 @@ int tty_unregister_driver(struct tty_driver *driver) | |||
3160 | driver->termios_locked[i] = NULL; | 3160 | driver->termios_locked[i] = NULL; |
3161 | kfree(tp); | 3161 | kfree(tp); |
3162 | } | 3162 | } |
3163 | if (!(driver->flags & TTY_DRIVER_NO_DEVFS)) | 3163 | if (!(driver->flags & TTY_DRIVER_DYNAMIC_DEV)) |
3164 | tty_unregister_device(driver, i); | 3164 | tty_unregister_device(driver, i); |
3165 | } | 3165 | } |
3166 | p = driver->ttys; | 3166 | p = driver->ttys; |