patch-2.3.1 linux/net/irda/ircomm/irvtd_driver.c
Next file: linux/net/netlink/af_netlink.c
Previous file: linux/net/irda/af_irda.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Wed May 12 13:27:37 1999
- Orig file:
v2.3.0/linux/net/irda/ircomm/irvtd_driver.c
- Orig date:
Sat Apr 24 17:50:06 1999
diff -u --recursive --new-file v2.3.0/linux/net/irda/ircomm/irvtd_driver.c linux/net/irda/ircomm/irvtd_driver.c
@@ -607,7 +607,7 @@
struct irvtd_cb *driver)
{
- struct wait_queue wait = { current, NULL };
+ DECLARE_WAITQUEUE(wait,current);
int retval = 0;
int do_clocal = 0;
@@ -1930,6 +1930,10 @@
irvtd[i]->line = i;
irvtd[i]->closing_wait = 10*HZ ;
irvtd[i]->close_delay = 5*HZ/10 ;
+ init_waitqueue_head(&irvtd[i]->open_wait);
+ init_waitqueue_head(&irvtd[i]->close_wait);
+ init_waitqueue_head(&irvtd[i]->tx_wait);
+ init_waitqueue_head(&irvtd[i]->delta_msr_wait);
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)