From: H Hartley Sweeten Date: Mon, 9 Dec 2013 22:30:37 +0000 (-0700) Subject: staging: comedi: pcmmio: remove unused {lock, unlock}_port() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2ab62fdfc3bc68060300182a335daab1422df14c;p=openwrt%2Fstaging%2Fblogic.git staging: comedi: pcmmio: remove unused {lock, unlock}_port() These functions are #ifdef'ed out and not needed in the driver. Just remove them. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/pcmmio.c b/drivers/staging/comedi/drivers/pcmmio.c index ec098d883eb7..850b8f152a0b 100644 --- a/drivers/staging/comedi/drivers/pcmmio.c +++ b/drivers/staging/comedi/drivers/pcmmio.c @@ -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) {