staging: comedi: pcmuio: remove unused {lock,unlock}_port()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 18 Jun 2013 20:20:29 +0000 (13:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2013 22:50:38 +0000 (15:50 -0700)
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/pcmuio.c

index 9a560a36f1f512e4cc50689e20ebe78fad634d7c..5e7045b29bf1fe825abb879c4fd5522695158e44 100644 (file)
@@ -382,39 +382,6 @@ static void init_asics(struct comedi_device *dev)
        }
 }
 
-#ifdef notused
-static void lock_port(struct comedi_device *dev, int asic, int port)
-{
-       const struct pcmuio_board *board = comedi_board(dev);
-       struct pcmuio_private *devpriv = dev->private;
-
-       if (asic < 0 || asic >= board->num_asics)
-               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,
-            dev->iobase + ASIC_IOSIZE * asic + REG_PAGELOCK);
-}
-
-static void unlock_port(struct comedi_device *dev, int asic, int port)
-{
-       const struct pcmuio_board *board = comedi_board(dev);
-       struct pcmuio_private *devpriv = dev->private;
-
-       if (asic < 0 || asic >= board->num_asics)
-               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,
-            dev->iobase + ASIC_IOSIZE * asic + REG_PAGELOCK);
-}
-#endif /* notused */
-
 static void pcmuio_stop_intr(struct comedi_device *dev,
                             struct comedi_subdevice *s)
 {