patch-2.3.48 linux/drivers/char/dz.h

Next file: linux/drivers/char/efirtc.c
Previous file: linux/drivers/char/dz.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/drivers/char/dz.h linux/drivers/char/dz.h
@@ -158,8 +158,8 @@
   struct tq_struct        tqueue_hangup;
   struct termios          normal_termios;
   struct termios          callout_termios;
-  struct wait_queue       *open_wait;
-  struct wait_queue       *close_wait;
+  wait_queue_head_t       open_wait;
+  wait_queue_head_t       close_wait;
 
   long                    session;             /* Session of opening process */
   long                    pgrp;                /* pgrp of opening process */
@@ -188,7 +188,7 @@
  * memory if large numbers of serial ports are open.
  */
 static unsigned char *tmp_buf;
-static struct semaphore tmp_buf_sem = MUTEX;
+static DECLARE_MUTEX(tmp_buf_sem);
 
 static char *dz_name = "DECstation DZ serial driver version ";
 static char *dz_version = "1.02";

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)