staging: comedi: pcmmio: remove unused {lock, unlock}_port()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 9 Dec 2013 22:30:37 +0000 (15:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2013 18:01:49 +0000 (10:01 -0800)
These functions are #ifdef'ed out and not needed in the driver.
Just remove them.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/pcmmio.c

index ec098d883eb72fc1e23d4f26c2142dc111b1f97c..850b8f152a0bd1f18cc12de5c8f74a3c34f08984 100644 (file)
@@ -362,38 +362,6 @@ static void init_asics(struct comedi_device *dev)
        }
 }
 
-#ifdef notused
-static void lock_port(struct comedi_device *dev, int asic, int port)
-{
-       struct pcmmio_private *devpriv = dev->private;
-
-       if (asic < 0 || asic >= 1)
-               return;         /* paranoia */
-       if (port < 0 || port >= PORTS_PER_ASIC)
-               return;         /* more paranoia */
-
-       devpriv->asics[asic].pagelock |= 0x1 << port;
-       /* now write out the shadow register */
-       outb(devpriv->asics[asic].pagelock,
-            devpriv->asics[asic].iobase + REG_PAGELOCK);
-       return;
-}
-
-static void unlock_port(struct comedi_device *dev, int asic, int port)
-{
-       struct pcmmio_private *devpriv = dev->private;
-
-       if (asic < 0 || asic >= 1)
-               return;         /* paranoia */
-       if (port < 0 || port >= PORTS_PER_ASIC)
-               return;         /* more paranoia */
-       devpriv->asics[asic].pagelock &= ~(0x1 << port) | REG_LOCK_MASK;
-       /* now write out the shadow register */
-       outb(devpriv->asics[asic].pagelock,
-            devpriv->asics[asic].iobase + REG_PAGELOCK);
-}
-#endif /* notused */
-
 static void pcmmio_stop_intr(struct comedi_device *dev,
                             struct comedi_subdevice *s)
 {