diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-08-07 15:47:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-13 19:50:19 -0400 |
commit | c4d6ebeb7d78ea8eabd5efe9ef876fe371cb5f4b (patch) | |
tree | e9300a70c249537ceeb93ce20c8d3a19567fb7b9 | |
parent | 734cc1783816ae358cef45673a29bf7af974e147 (diff) |
TTY: automatically create nodes for some drivers
This looks like it was a mistake not to create device nodes for these
drivers. Let us create them from now on.
It will be necessary to call tty_register_device some way, either by
tty_register_driver implicitly or to call tty_register_device proper.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: netdev@vger.kernel.org
Cc: linux390@de.ibm.com
Cc: linux-s390@vger.kernel.org
Cc: linux-cris-kernel@axis.com
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/isdn/i4l/isdn_tty.c | 2 | ||||
-rw-r--r-- | drivers/s390/char/tty3270.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/crisv10.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c index 7a61ef6cffaa..576ce4b14f93 100644 --- a/drivers/isdn/i4l/isdn_tty.c +++ b/drivers/isdn/i4l/isdn_tty.c | |||
@@ -1782,7 +1782,7 @@ isdn_tty_modem_init(void) | |||
1782 | m->tty_modem->subtype = SERIAL_TYPE_NORMAL; | 1782 | m->tty_modem->subtype = SERIAL_TYPE_NORMAL; |
1783 | m->tty_modem->init_termios = tty_std_termios; | 1783 | m->tty_modem->init_termios = tty_std_termios; |
1784 | m->tty_modem->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; | 1784 | m->tty_modem->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; |
1785 | m->tty_modem->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; | 1785 | m->tty_modem->flags = TTY_DRIVER_REAL_RAW; |
1786 | m->tty_modem->driver_name = "isdn_tty"; | 1786 | m->tty_modem->driver_name = "isdn_tty"; |
1787 | tty_set_operations(m->tty_modem, &modem_ops); | 1787 | tty_set_operations(m->tty_modem, &modem_ops); |
1788 | retval = tty_register_driver(m->tty_modem); | 1788 | retval = tty_register_driver(m->tty_modem); |
diff --git a/drivers/s390/char/tty3270.c b/drivers/s390/char/tty3270.c index 215037c745ca..f2b8c6c533e8 100644 --- a/drivers/s390/char/tty3270.c +++ b/drivers/s390/char/tty3270.c | |||
@@ -1781,7 +1781,7 @@ static int __init tty3270_init(void) | |||
1781 | driver->type = TTY_DRIVER_TYPE_SYSTEM; | 1781 | driver->type = TTY_DRIVER_TYPE_SYSTEM; |
1782 | driver->subtype = SYSTEM_TYPE_TTY; | 1782 | driver->subtype = SYSTEM_TYPE_TTY; |
1783 | driver->init_termios = tty_std_termios; | 1783 | driver->init_termios = tty_std_termios; |
1784 | driver->flags = TTY_DRIVER_RESET_TERMIOS | TTY_DRIVER_DYNAMIC_DEV; | 1784 | driver->flags = TTY_DRIVER_RESET_TERMIOS; |
1785 | tty_set_operations(driver, &tty3270_ops); | 1785 | tty_set_operations(driver, &tty3270_ops); |
1786 | ret = tty_register_driver(driver); | 1786 | ret = tty_register_driver(driver); |
1787 | if (ret) { | 1787 | if (ret) { |
diff --git a/drivers/tty/serial/crisv10.c b/drivers/tty/serial/crisv10.c index a770b1012962..5ecec3b120e7 100644 --- a/drivers/tty/serial/crisv10.c +++ b/drivers/tty/serial/crisv10.c | |||
@@ -4443,7 +4443,7 @@ static int __init rs_init(void) | |||
4443 | B115200 | CS8 | CREAD | HUPCL | CLOCAL; /* is normally B9600 default... */ | 4443 | B115200 | CS8 | CREAD | HUPCL | CLOCAL; /* is normally B9600 default... */ |
4444 | driver->init_termios.c_ispeed = 115200; | 4444 | driver->init_termios.c_ispeed = 115200; |
4445 | driver->init_termios.c_ospeed = 115200; | 4445 | driver->init_termios.c_ospeed = 115200; |
4446 | driver->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; | 4446 | driver->flags = TTY_DRIVER_REAL_RAW; |
4447 | 4447 | ||
4448 | tty_set_operations(driver, &rs_ops); | 4448 | tty_set_operations(driver, &rs_ops); |
4449 | serial_driver = driver; | 4449 | serial_driver = driver; |