pcmcia: synclink_cs: drop redundant tty-port initialisation
authorJohan Hovold <johan@kernel.org>
Wed, 7 Apr 2021 10:23:33 +0000 (12:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Apr 2021 15:22:07 +0000 (17:22 +0200)
The port close_delay and closing_wait parameters have already been by
tty_port_init() so drop the redundant driver initialisation to the
default values.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210407102334.32361-16-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/pcmcia/synclink_cs.c

index 2be8d9a8eec5d578d6e06b89d3dfe926b1c8bc64..3287a7627ed00c08df7aa20edbecc5c2dc813db7 100644 (file)
@@ -530,8 +530,6 @@ static int mgslpc_probe(struct pcmcia_device *link)
        info->port.ops = &mgslpc_port_ops;
        INIT_WORK(&info->task, bh_handler);
        info->max_frame_size = 4096;
-       info->port.close_delay = 5*HZ/10;
-       info->port.closing_wait = 30*HZ;
        init_waitqueue_head(&info->status_event_wait_q);
        init_waitqueue_head(&info->event_wait_q);
        spin_lock_init(&info->lock);