From c7df654b722600ff3c8d77682806729370c7dc5b Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Mon, 26 Sep 2011 10:29:35 +0100 Subject: [PATCH] usbduxsigma: Remove conditional code that calls sema_init Bernd says the removed code was needed for Ubuntu 10.04 LTS kernel, but it's better to remove it and solve any problems for that kernel another way. Signed-off-by: Ian Abbott --- comedi/drivers/usbduxsigma.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/comedi/drivers/usbduxsigma.c b/comedi/drivers/usbduxsigma.c index 09339d03..10ee5c06 100644 --- a/comedi/drivers/usbduxsigma.c +++ b/comedi/drivers/usbduxsigma.c @@ -2378,11 +2378,7 @@ static int usbduxsigma_probe(struct usb_interface *uinterf, dev_dbg(dev, "comedi_: usbdux: " "usbduxsub[%d] is ready to connect to comedi.\n", index); -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,33) - sema_init(&(usbduxsub[index].sem), 1); -#else mutex_init(&(usbduxsub[index].sem)); -#endif /* save a pointer to the usb device */ usbduxsub[index].usbdev = udev; -- 2.26.2