patch-2.3.6 linux/drivers/sbus/char/vfc_dev.c

Next file: linux/drivers/scsi/Config.in
Previous file: linux/drivers/sbus/char/su.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.5/linux/drivers/sbus/char/vfc_dev.c linux/drivers/sbus/char/vfc_dev.c
@@ -129,9 +129,9 @@
 int init_vfc_devstruct(struct vfc_dev *dev, int instance) 
 {
 	dev->instance=instance;
-	dev->device_lock_sem=MUTEX;
+	init_MUTEX(&dev->device_lock_sem);
 	dev->control_reg=0;
-	dev->poll_wait=NULL;
+	init_waitqueue_head(&dev->poll_wait);
 	dev->busy=0;
 	return 0;
 }
@@ -203,7 +203,6 @@
 {
 	struct vfc_debug_inout inout;
 	unsigned char *buffer;
-	int ret;
 
 	if(!capable(CAP_SYS_ADMIN)) return -EPERM;
 

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