patch-2.3.19 linux/drivers/char/pcxx.c
Next file: linux/drivers/char/radio-aimslab.c
Previous file: linux/drivers/char/pcwd.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Wed Sep 29 15:32:15 1999
- Orig file:
v2.3.18/linux/drivers/char/pcxx.c
- Orig date:
Tue Aug 31 17:29:13 1999
diff -u --recursive --new-file v2.3.18/linux/drivers/char/pcxx.c linux/drivers/char/pcxx.c
@@ -79,6 +79,7 @@
#include <asm/io.h>
#include <asm/uaccess.h>
#include <asm/bitops.h>
+#include <asm/semaphore.h>
#define VERSION "1.6.1"
@@ -1588,8 +1589,8 @@
ch->blocked_open = 0;
ch->callout_termios = pcxe_callout.init_termios;
ch->normal_termios = pcxe_driver.init_termios;
- ch->open_wait = 0;
- ch->close_wait = 0;
+ init_waitqueue_head(ch->open_wait);
+ init_waitqueue_head(ch->close_wait);
ch->asyncflags = 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)