Bug 22972 - The patch adds code that will not compile
Summary: The patch adds code that will not compile
Status: RESOLVED OBSOLETE
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-15 07:01 UTC by gregreenwood
Modified: 2012-08-14 12:55 UTC (History)
1 user (show)

See Also:
Kernel Version: patch-2.6.33.7-rt29, usbdux driver
Subsystem:
Regression: No
Bisected commit-id:


Attachments

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);

Note You need to log in before you can comment on or make changes to this bug.