diff options
Diffstat (limited to 'drivers/s390/char/sclp_tty.c')
-rw-r--r-- | drivers/s390/char/sclp_tty.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/s390/char/sclp_tty.c b/drivers/s390/char/sclp_tty.c index 30ec09e3d03..877fbc37c1e 100644 --- a/drivers/s390/char/sclp_tty.c +++ b/drivers/s390/char/sclp_tty.c | |||
@@ -547,7 +547,6 @@ sclp_tty_init(void) | |||
547 | sclp_tty_tolower = 1; | 547 | sclp_tty_tolower = 1; |
548 | } | 548 | } |
549 | sclp_tty_chars_count = 0; | 549 | sclp_tty_chars_count = 0; |
550 | tty_port_init(&sclp_port); | ||
551 | 550 | ||
552 | rc = sclp_register(&sclp_input_event); | 551 | rc = sclp_register(&sclp_input_event); |
553 | if (rc) { | 552 | if (rc) { |
@@ -555,6 +554,8 @@ sclp_tty_init(void) | |||
555 | return rc; | 554 | return rc; |
556 | } | 555 | } |
557 | 556 | ||
557 | tty_port_init(&sclp_port); | ||
558 | |||
558 | driver->driver_name = "sclp_line"; | 559 | driver->driver_name = "sclp_line"; |
559 | driver->name = "sclp_line"; | 560 | driver->name = "sclp_line"; |
560 | driver->major = TTY_MAJOR; | 561 | driver->major = TTY_MAJOR; |
@@ -571,6 +572,7 @@ sclp_tty_init(void) | |||
571 | rc = tty_register_driver(driver); | 572 | rc = tty_register_driver(driver); |
572 | if (rc) { | 573 | if (rc) { |
573 | put_tty_driver(driver); | 574 | put_tty_driver(driver); |
575 | tty_port_destroy(&sclp_port); | ||
574 | return rc; | 576 | return rc; |
575 | } | 577 | } |
576 | sclp_tty_driver = driver; | 578 | sclp_tty_driver = driver; |