Bug 22972

Summary: The patch adds code that will not compile
Product: Other Reporter: gregreenwood
Component: OtherAssignee: other_other
Status: RESOLVED OBSOLETE    
Severity: normal CC: alan
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: patch-2.6.33.7-rt29, usbdux driver Subsystem:
Regression: No Bisected commit-id:

Description gregreenwood 2010-11-15 07:01:54 UTC
The patch noted replaces a line of code in drivers/staging/comedi/drivers/usbdux.c that will fail to compile due to syntax.
The patch attempts:
-	init_MUTEX(&(usbduxsub[index].sem));
+	sema_init(&(usbduxsub[index].sem)), 1;

and the line should read:
-	init_MUTEX(&(usbduxsub[index].sem));
+	sema_init(&(usbduxsub[index].sem), 1);