aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/synclinkmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/synclinkmp.c')
-rw-r--r--drivers/char/synclinkmp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/char/synclinkmp.c b/drivers/char/synclinkmp.c
index 5b5b292d046b..c4bc09018368 100644
--- a/drivers/char/synclinkmp.c
+++ b/drivers/char/synclinkmp.c
@@ -846,11 +846,11 @@ static void close(struct tty_struct *tty, struct file *filp)
846 846
847 /* wait for transmit data to clear all layers */ 847 /* wait for transmit data to clear all layers */
848 848
849 if (info->closing_wait != ASYNC_CLOSING_WAIT_NONE) { 849 if (info->port.closing_wait != ASYNC_CLOSING_WAIT_NONE) {
850 if (debug_level >= DEBUG_LEVEL_INFO) 850 if (debug_level >= DEBUG_LEVEL_INFO)
851 printk("%s(%d):%s close() calling tty_wait_until_sent\n", 851 printk("%s(%d):%s close() calling tty_wait_until_sent\n",
852 __FILE__,__LINE__, info->device_name ); 852 __FILE__,__LINE__, info->device_name );
853 tty_wait_until_sent(tty, info->closing_wait); 853 tty_wait_until_sent(tty, info->port.closing_wait);
854 } 854 }
855 855
856 if (info->port.flags & ASYNC_INITIALIZED) 856 if (info->port.flags & ASYNC_INITIALIZED)
@@ -866,8 +866,8 @@ static void close(struct tty_struct *tty, struct file *filp)
866 info->port.tty = NULL; 866 info->port.tty = NULL;
867 867
868 if (info->port.blocked_open) { 868 if (info->port.blocked_open) {
869 if (info->close_delay) { 869 if (info->port.close_delay) {
870 msleep_interruptible(jiffies_to_msecs(info->close_delay)); 870 msleep_interruptible(jiffies_to_msecs(info->port.close_delay));
871 } 871 }
872 wake_up_interruptible(&info->port.open_wait); 872 wake_up_interruptible(&info->port.open_wait);
873 } 873 }
@@ -3802,12 +3802,12 @@ static SLMP_INFO *alloc_dev(int adapter_num, int port_num, struct pci_dev *pdev)
3802 printk("%s(%d) Error can't allocate device instance data for adapter %d, port %d\n", 3802 printk("%s(%d) Error can't allocate device instance data for adapter %d, port %d\n",
3803 __FILE__,__LINE__, adapter_num, port_num); 3803 __FILE__,__LINE__, adapter_num, port_num);
3804 } else { 3804 } else {
3805 tty_port_init(&info->port);
3805 info->magic = MGSL_MAGIC; 3806 info->magic = MGSL_MAGIC;
3806 INIT_WORK(&info->task, bh_handler); 3807 INIT_WORK(&info->task, bh_handler);
3807 info->max_frame_size = 4096; 3808 info->max_frame_size = 4096;
3808 info->close_delay = 5*HZ/10; 3809 info->port.close_delay = 5*HZ/10;
3809 info->closing_wait = 30*HZ; 3810 info->port.closing_wait = 30*HZ;
3810 tty_port_init(&info->port);
3811 init_waitqueue_head(&info->status_event_wait_q); 3811 init_waitqueue_head(&info->status_event_wait_q);
3812 init_waitqueue_head(&info->event_wait_q); 3812 init_waitqueue_head(&info->event_wait_q);
3813 spin_lock_init(&info->netlock); 3813 spin_lock_init(&info->netlock);