summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-04-07 12:23:33 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-07 17:22:07 +0200
commita5c67f89300435f0fae222fef897a8e337c52927 (patch)
tree7b97c5cf9b3b4ecb1bb7638c06131237d287be8e /drivers/char
parentb91cfb2573aeb5ab426fc3c35bcfe9e0d2a7ecbc (diff)
downloadlinux-a5c67f89300435f0fae222fef897a8e337c52927.tar.gz
linux-a5c67f89300435f0fae222fef897a8e337c52927.tar.bz2
linux-a5c67f89300435f0fae222fef897a8e337c52927.zip
pcmcia: synclink_cs: drop redundant tty-port initialisation
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>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/pcmcia/synclink_cs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c
index 2be8d9a8eec5..3287a7627ed0 100644
--- a/drivers/char/pcmcia/synclink_cs.c
+++ b/drivers/char/pcmcia/synclink_cs.c
@@ -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);