patch-2.3.30 linux/drivers/char/pc110pad.c

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

diff -u --recursive --new-file v2.3.29/linux/drivers/char/pc110pad.c linux/drivers/char/pc110pad.c
@@ -53,7 +53,7 @@
 static wait_queue_head_t queue;
 static struct fasync_struct *asyncptr;
 static int active=0;	/* number of concurrent open()s */
-static struct semaphore read_lock;
+static struct semaphore reader_lock;
 
 /*
  * Utility to reset a timer to go off some time in the future.
@@ -561,7 +561,7 @@
 {
 	int r;
 
-	down(&read_lock);
+	down(&reader_lock);
 	for(r=0; r<count; r++)
 	{
 		if(!read_byte_count)
@@ -573,7 +573,7 @@
 		}
 		read_byte_count = (read_byte_count+1)%3;
 	}
-	up(&read_lock);
+	up(&reader_lock);
 	return r;
 }
 
@@ -691,7 +691,7 @@
 
 int init_module(void)
 {
-	init_MUTEX(&read_lock);
+	init_MUTEX(&reader_lock);
 	return pc110pad_init();
 }
 

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