comedi: Removal of <linux/smp_lock.h>
authorIan Abbott <abbotti@mev.co.uk>
Fri, 13 May 2011 13:55:19 +0000 (14:55 +0100)
committerIan Abbott <abbotti@mev.co.uk>
Fri, 13 May 2011 13:55:19 +0000 (14:55 +0100)
commitee00026c9d5e96fe8e6e8a8551c8258578fc8d7b
treea22f3cce03da68a47a2b1dcd188b9aa95daa1efd
parenta8f14c26915ad7696759f20a07e406f82a54509b
comedi: Removal of <linux/smp_lock.h>

The <linux/smp_lock.h> header (used for the Big Kernel Lock) is removed
in kernel 2.6.39.  It was included by:

  comedi/comedi_compat32.c
  comedi/drivers/usbdux.c
  comedi/drivers/usbduxfast.c

The usbdux and usbduxfast drivers shouldn't need to include the header
as they don't grab the BKL, so remove the #include line for these
drivers.

The comedi_compat32 code only uses it when calling the ioctl file
operation, and that can only happen for kernels up to 2.6.35 (and even
then it wouldn't be called if the unlocked_ioctl file operation is
available!). Ifdef out the #include line.  Also include
<linux/version.h> explicitly to avoid compiler errors for 2.6.39 kernel.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
comedi/comedi_compat32.c
comedi/drivers/usbdux.c
comedi/drivers/usbduxfast.c