staging: comedi: ni_pcidio: remove debug_int()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 26 Nov 2013 17:21:13 +0000 (10:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Nov 2013 17:55:13 +0000 (09:55 -0800)
This function is not used by the driver. Just remove it.

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/ni_pcidio.c

index c04ec2954a0acda6c9f25c44cf6352c7ee7df882..933aabec86e89918d9fa1fc4e154000b6a1c5b59 100644 (file)
@@ -539,37 +539,6 @@ out:
        return IRQ_HANDLED;
 }
 
-#ifdef unused
-static void debug_int(struct comedi_device *dev)
-{
-       struct nidio96_private *devpriv = dev->private;
-       int a, b;
-       static int n_int;
-       struct timeval tv;
-
-       do_gettimeofday(&tv);
-       a = readb(devpriv->mite->daq_io_addr + Group_Status);
-       b = readb(devpriv->mite->daq_io_addr + Group_1_Flags);
-
-       if (n_int < 10) {
-               DPRINTK("status 0x%02x flags 0x%02x time %06d\n", a, b,
-                       (int)tv.tv_usec);
-       }
-
-       while (b & 1) {
-               writew(0xff, devpriv->mite->daq_io_addr + Group_1_FIFO);
-               b = readb(devpriv->mite->daq_io_addr + Group_1_Flags);
-       }
-
-       b = readb(devpriv->mite->daq_io_addr + Group_1_Flags);
-
-       if (n_int < 10) {
-               DPRINTK("new status 0x%02x\n", b);
-               n_int++;
-       }
-}
-#endif
-
 static int ni_pcidio_insn_config(struct comedi_device *dev,
                                 struct comedi_subdevice *s,
                                 struct comedi_insn *insn,