diff options
-rw-r--r-- | arch/cris/arch-v10/kernel/debugport.c | 2 | ||||
-rw-r--r-- | arch/cris/arch-v32/kernel/debugport.c | 2 | ||||
-rw-r--r-- | arch/ppc/4xx_io/serial_sicc.c | 2 | ||||
-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 | ||||
-rw-r--r-- | drivers/isdn/gigaset/interface.c | 2 | ||||
-rw-r--r-- | drivers/isdn/i4l/isdn_tty.c | 2 | ||||
-rw-r--r-- | drivers/s390/char/tty3270.c | 2 | ||||
-rw-r--r-- | drivers/serial/crisv10.c | 2 | ||||
-rw-r--r-- | drivers/serial/serial_core.c | 2 | ||||
-rw-r--r-- | drivers/tc/zs.c | 2 | ||||
-rw-r--r-- | drivers/usb/class/cdc-acm.c | 2 | ||||
-rw-r--r-- | drivers/usb/gadget/serial.c | 2 | ||||
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 2 | ||||
-rw-r--r-- | include/linux/tty_driver.h | 13 | ||||
-rw-r--r-- | net/bluetooth/rfcomm/tty.c | 2 |
18 files changed, 32 insertions, 25 deletions
diff --git a/arch/cris/arch-v10/kernel/debugport.c b/arch/cris/arch-v10/kernel/debugport.c index f3a85b77c17e..dde813e16294 100644 --- a/arch/cris/arch-v10/kernel/debugport.c +++ b/arch/cris/arch-v10/kernel/debugport.c | |||
@@ -541,7 +541,7 @@ init_dummy_console(void) | |||
541 | dummy_driver.init_termios = tty_std_termios; | 541 | dummy_driver.init_termios = tty_std_termios; |
542 | dummy_driver.init_termios.c_cflag = | 542 | dummy_driver.init_termios.c_cflag = |
543 | B115200 | CS8 | CREAD | HUPCL | CLOCAL; /* is normally B9600 default... */ | 543 | B115200 | CS8 | CREAD | HUPCL | CLOCAL; /* is normally B9600 default... */ |
544 | dummy_driver.flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS; | 544 | dummy_driver.flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
545 | 545 | ||
546 | dummy_driver.open = dummy_open; | 546 | dummy_driver.open = dummy_open; |
547 | dummy_driver.close = dummy_close; | 547 | dummy_driver.close = dummy_close; |
diff --git a/arch/cris/arch-v32/kernel/debugport.c b/arch/cris/arch-v32/kernel/debugport.c index ffc1ebf2dfee..3dc587e6201a 100644 --- a/arch/cris/arch-v32/kernel/debugport.c +++ b/arch/cris/arch-v32/kernel/debugport.c | |||
@@ -353,7 +353,7 @@ init_dummy_console(void) | |||
353 | dummy_driver.init_termios = tty_std_termios; | 353 | dummy_driver.init_termios = tty_std_termios; |
354 | dummy_driver.init_termios.c_cflag = | 354 | dummy_driver.init_termios.c_cflag = |
355 | B115200 | CS8 | CREAD | HUPCL | CLOCAL; /* is normally B9600 default... */ | 355 | B115200 | CS8 | CREAD | HUPCL | CLOCAL; /* is normally B9600 default... */ |
356 | dummy_driver.flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS; | 356 | dummy_driver.flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
357 | 357 | ||
358 | dummy_driver.open = dummy_open; | 358 | dummy_driver.open = dummy_open; |
359 | dummy_driver.close = dummy_close; | 359 | dummy_driver.close = dummy_close; |
diff --git a/arch/ppc/4xx_io/serial_sicc.c b/arch/ppc/4xx_io/serial_sicc.c index 98b25fa0049a..1e113d0f59b8 100644 --- a/arch/ppc/4xx_io/serial_sicc.c +++ b/arch/ppc/4xx_io/serial_sicc.c | |||
@@ -1758,7 +1758,7 @@ int __init siccuart_init(void) | |||
1758 | siccnormal_driver->subtype = SERIAL_TYPE_NORMAL; | 1758 | siccnormal_driver->subtype = SERIAL_TYPE_NORMAL; |
1759 | siccnormal_driver->init_termios = tty_std_termios; | 1759 | siccnormal_driver->init_termios = tty_std_termios; |
1760 | siccnormal_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; | 1760 | siccnormal_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; |
1761 | siccnormal_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS; | 1761 | siccnormal_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
1762 | tty_set_operations(siccnormal_driver, &sicc_ops); | 1762 | tty_set_operations(siccnormal_driver, &sicc_ops); |
1763 | 1763 | ||
1764 | if (tty_register_driver(siccnormal_driver)) | 1764 | if (tty_register_driver(siccnormal_driver)) |
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; |
diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c index 9f8628bbdf56..bd2e4267528e 100644 --- a/drivers/isdn/gigaset/interface.c +++ b/drivers/isdn/gigaset/interface.c | |||
@@ -691,7 +691,7 @@ void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname, | |||
691 | tty->major = GIG_MAJOR, | 691 | tty->major = GIG_MAJOR, |
692 | tty->type = TTY_DRIVER_TYPE_SERIAL, | 692 | tty->type = TTY_DRIVER_TYPE_SERIAL, |
693 | tty->subtype = SERIAL_TYPE_NORMAL, | 693 | tty->subtype = SERIAL_TYPE_NORMAL, |
694 | tty->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS, | 694 | tty->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
695 | 695 | ||
696 | tty->driver_name = procname; | 696 | tty->driver_name = procname; |
697 | tty->name = devname; | 697 | tty->name = devname; |
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c index e7f0f15c7353..77579f82aede 100644 --- a/drivers/isdn/i4l/isdn_tty.c +++ b/drivers/isdn/i4l/isdn_tty.c | |||
@@ -1896,7 +1896,7 @@ isdn_tty_modem_init(void) | |||
1896 | m->tty_modem->subtype = SERIAL_TYPE_NORMAL; | 1896 | m->tty_modem->subtype = SERIAL_TYPE_NORMAL; |
1897 | m->tty_modem->init_termios = tty_std_termios; | 1897 | m->tty_modem->init_termios = tty_std_termios; |
1898 | m->tty_modem->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; | 1898 | m->tty_modem->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; |
1899 | m->tty_modem->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS; | 1899 | m->tty_modem->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
1900 | m->tty_modem->driver_name = "isdn_tty"; | 1900 | m->tty_modem->driver_name = "isdn_tty"; |
1901 | tty_set_operations(m->tty_modem, &modem_ops); | 1901 | tty_set_operations(m->tty_modem, &modem_ops); |
1902 | retval = tty_register_driver(m->tty_modem); | 1902 | retval = tty_register_driver(m->tty_modem); |
diff --git a/drivers/s390/char/tty3270.c b/drivers/s390/char/tty3270.c index 43c8c9f5f301..7d26a3e4cb80 100644 --- a/drivers/s390/char/tty3270.c +++ b/drivers/s390/char/tty3270.c | |||
@@ -1792,7 +1792,7 @@ tty3270_init(void) | |||
1792 | driver->type = TTY_DRIVER_TYPE_SYSTEM; | 1792 | driver->type = TTY_DRIVER_TYPE_SYSTEM; |
1793 | driver->subtype = SYSTEM_TYPE_TTY; | 1793 | driver->subtype = SYSTEM_TYPE_TTY; |
1794 | driver->init_termios = tty_std_termios; | 1794 | driver->init_termios = tty_std_termios; |
1795 | driver->flags = TTY_DRIVER_RESET_TERMIOS | TTY_DRIVER_NO_DEVFS; | 1795 | driver->flags = TTY_DRIVER_RESET_TERMIOS | TTY_DRIVER_DYNAMIC_DEV; |
1796 | tty_set_operations(driver, &tty3270_ops); | 1796 | tty_set_operations(driver, &tty3270_ops); |
1797 | ret = tty_register_driver(driver); | 1797 | ret = tty_register_driver(driver); |
1798 | if (ret) { | 1798 | if (ret) { |
diff --git a/drivers/serial/crisv10.c b/drivers/serial/crisv10.c index 89700141f87e..2364c3949981 100644 --- a/drivers/serial/crisv10.c +++ b/drivers/serial/crisv10.c | |||
@@ -4884,7 +4884,7 @@ rs_init(void) | |||
4884 | driver->init_termios = tty_std_termios; | 4884 | driver->init_termios = tty_std_termios; |
4885 | driver->init_termios.c_cflag = | 4885 | driver->init_termios.c_cflag = |
4886 | B115200 | CS8 | CREAD | HUPCL | CLOCAL; /* is normally B9600 default... */ | 4886 | B115200 | CS8 | CREAD | HUPCL | CLOCAL; /* is normally B9600 default... */ |
4887 | driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS; | 4887 | driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
4888 | driver->termios = serial_termios; | 4888 | driver->termios = serial_termios; |
4889 | driver->termios_locked = serial_termios_locked; | 4889 | driver->termios_locked = serial_termios_locked; |
4890 | 4890 | ||
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index 84d70d855598..7dc1e67b6851 100644 --- a/drivers/serial/serial_core.c +++ b/drivers/serial/serial_core.c | |||
@@ -2160,7 +2160,7 @@ int uart_register_driver(struct uart_driver *drv) | |||
2160 | normal->subtype = SERIAL_TYPE_NORMAL; | 2160 | normal->subtype = SERIAL_TYPE_NORMAL; |
2161 | normal->init_termios = tty_std_termios; | 2161 | normal->init_termios = tty_std_termios; |
2162 | normal->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; | 2162 | normal->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; |
2163 | normal->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS; | 2163 | normal->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
2164 | normal->driver_state = drv; | 2164 | normal->driver_state = drv; |
2165 | tty_set_operations(normal, &uart_ops); | 2165 | tty_set_operations(normal, &uart_ops); |
2166 | 2166 | ||
diff --git a/drivers/tc/zs.c b/drivers/tc/zs.c index 582d926cd000..7f27b356eaf7 100644 --- a/drivers/tc/zs.c +++ b/drivers/tc/zs.c | |||
@@ -1753,7 +1753,7 @@ int __init zs_init(void) | |||
1753 | serial_driver->init_termios = tty_std_termios; | 1753 | serial_driver->init_termios = tty_std_termios; |
1754 | serial_driver->init_termios.c_cflag = | 1754 | serial_driver->init_termios.c_cflag = |
1755 | B9600 | CS8 | CREAD | HUPCL | CLOCAL; | 1755 | B9600 | CS8 | CREAD | HUPCL | CLOCAL; |
1756 | serial_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS; | 1756 | serial_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
1757 | tty_set_operations(serial_driver, &serial_ops); | 1757 | tty_set_operations(serial_driver, &serial_ops); |
1758 | 1758 | ||
1759 | if (tty_register_driver(serial_driver)) | 1759 | if (tty_register_driver(serial_driver)) |
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index a0b9eddd98e4..3670d77e912c 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c | |||
@@ -1149,7 +1149,7 @@ static int __init acm_init(void) | |||
1149 | acm_tty_driver->minor_start = 0, | 1149 | acm_tty_driver->minor_start = 0, |
1150 | acm_tty_driver->type = TTY_DRIVER_TYPE_SERIAL, | 1150 | acm_tty_driver->type = TTY_DRIVER_TYPE_SERIAL, |
1151 | acm_tty_driver->subtype = SERIAL_TYPE_NORMAL, | 1151 | acm_tty_driver->subtype = SERIAL_TYPE_NORMAL, |
1152 | acm_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS, | 1152 | acm_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
1153 | acm_tty_driver->init_termios = tty_std_termios; | 1153 | acm_tty_driver->init_termios = tty_std_termios; |
1154 | acm_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; | 1154 | acm_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; |
1155 | tty_set_operations(acm_tty_driver, &acm_ops); | 1155 | tty_set_operations(acm_tty_driver, &acm_ops); |
diff --git a/drivers/usb/gadget/serial.c b/drivers/usb/gadget/serial.c index 2c8e5c10eb9f..416acac879df 100644 --- a/drivers/usb/gadget/serial.c +++ b/drivers/usb/gadget/serial.c | |||
@@ -592,7 +592,7 @@ static int __init gs_module_init(void) | |||
592 | gs_tty_driver->minor_start = GS_MINOR_START; | 592 | gs_tty_driver->minor_start = GS_MINOR_START; |
593 | gs_tty_driver->type = TTY_DRIVER_TYPE_SERIAL; | 593 | gs_tty_driver->type = TTY_DRIVER_TYPE_SERIAL; |
594 | gs_tty_driver->subtype = SERIAL_TYPE_NORMAL; | 594 | gs_tty_driver->subtype = SERIAL_TYPE_NORMAL; |
595 | gs_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS; | 595 | gs_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
596 | gs_tty_driver->init_termios = tty_std_termios; | 596 | gs_tty_driver->init_termios = tty_std_termios; |
597 | gs_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; | 597 | gs_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; |
598 | tty_set_operations(gs_tty_driver, &gs_tty_ops); | 598 | tty_set_operations(gs_tty_driver, &gs_tty_ops); |
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index db7f54b0d856..f466f89eeb6d 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -1064,7 +1064,7 @@ static int __init usb_serial_init(void) | |||
1064 | usb_serial_tty_driver->minor_start = 0; | 1064 | usb_serial_tty_driver->minor_start = 0; |
1065 | usb_serial_tty_driver->type = TTY_DRIVER_TYPE_SERIAL; | 1065 | usb_serial_tty_driver->type = TTY_DRIVER_TYPE_SERIAL; |
1066 | usb_serial_tty_driver->subtype = SERIAL_TYPE_NORMAL; | 1066 | usb_serial_tty_driver->subtype = SERIAL_TYPE_NORMAL; |
1067 | usb_serial_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS; | 1067 | usb_serial_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
1068 | usb_serial_tty_driver->init_termios = tty_std_termios; | 1068 | usb_serial_tty_driver->init_termios = tty_std_termios; |
1069 | usb_serial_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; | 1069 | usb_serial_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; |
1070 | tty_set_operations(usb_serial_tty_driver, &serial_ops); | 1070 | tty_set_operations(usb_serial_tty_driver, &serial_ops); |
diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index 0bd31f0830f9..58c961c9e170 100644 --- a/include/linux/tty_driver.h +++ b/include/linux/tty_driver.h | |||
@@ -241,8 +241,15 @@ void tty_set_operations(struct tty_driver *driver, struct tty_operations *op); | |||
241 | * is also a promise, if the above case is true, not to signal | 241 | * is also a promise, if the above case is true, not to signal |
242 | * overruns, either.) | 242 | * overruns, either.) |
243 | * | 243 | * |
244 | * TTY_DRIVER_NO_DEVFS --- if set, do not create devfs entries. This | 244 | * TTY_DRIVER_DYNAMIC_DEV --- if set, the individual tty devices need |
245 | * is only used by tty_register_driver(). | 245 | * to be registered with a call to tty_register_driver() when the |
246 | * device is found in the system and unregistered with a call to | ||
247 | * tty_unregister_device() so the devices will be show up | ||
248 | * properly in sysfs. If not set, driver->num entries will be | ||
249 | * created by the tty core in sysfs when tty_register_driver() is | ||
250 | * called. This is to be used by drivers that have tty devices | ||
251 | * that can appear and disappear while the main tty driver is | ||
252 | * registered with the tty core. | ||
246 | * | 253 | * |
247 | * TTY_DRIVER_DEVPTS_MEM -- don't use the standard arrays, instead | 254 | * TTY_DRIVER_DEVPTS_MEM -- don't use the standard arrays, instead |
248 | * use dynamic memory keyed through the devpts filesystem. This | 255 | * use dynamic memory keyed through the devpts filesystem. This |
@@ -251,7 +258,7 @@ void tty_set_operations(struct tty_driver *driver, struct tty_operations *op); | |||
251 | #define TTY_DRIVER_INSTALLED 0x0001 | 258 | #define TTY_DRIVER_INSTALLED 0x0001 |
252 | #define TTY_DRIVER_RESET_TERMIOS 0x0002 | 259 | #define TTY_DRIVER_RESET_TERMIOS 0x0002 |
253 | #define TTY_DRIVER_REAL_RAW 0x0004 | 260 | #define TTY_DRIVER_REAL_RAW 0x0004 |
254 | #define TTY_DRIVER_NO_DEVFS 0x0008 | 261 | #define TTY_DRIVER_DYNAMIC_DEV 0x0008 |
255 | #define TTY_DRIVER_DEVPTS_MEM 0x0010 | 262 | #define TTY_DRIVER_DEVPTS_MEM 0x0010 |
256 | 263 | ||
257 | /* tty driver types */ | 264 | /* tty driver types */ |
diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c index afb3c524db34..5fdc36678621 100644 --- a/net/bluetooth/rfcomm/tty.c +++ b/net/bluetooth/rfcomm/tty.c | |||
@@ -1030,7 +1030,7 @@ int rfcomm_init_ttys(void) | |||
1030 | rfcomm_tty_driver->minor_start = RFCOMM_TTY_MINOR; | 1030 | rfcomm_tty_driver->minor_start = RFCOMM_TTY_MINOR; |
1031 | rfcomm_tty_driver->type = TTY_DRIVER_TYPE_SERIAL; | 1031 | rfcomm_tty_driver->type = TTY_DRIVER_TYPE_SERIAL; |
1032 | rfcomm_tty_driver->subtype = SERIAL_TYPE_NORMAL; | 1032 | rfcomm_tty_driver->subtype = SERIAL_TYPE_NORMAL; |
1033 | rfcomm_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS; | 1033 | rfcomm_tty_driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; |
1034 | rfcomm_tty_driver->init_termios = tty_std_termios; | 1034 | rfcomm_tty_driver->init_termios = tty_std_termios; |
1035 | rfcomm_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; | 1035 | rfcomm_tty_driver->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; |
1036 | tty_set_operations(rfcomm_tty_driver, &rfcomm_ops); | 1036 | tty_set_operations(rfcomm_tty_driver, &rfcomm_ops); |