staging: comedi: das_08: remove the 8254 'channels' usage
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 29 Jun 2012 18:01:22 +0000 (11:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:46:08 +0000 (15:46 -0700)
The internal 8254 'channels' count is the same as the comedi
subdevice 'n_chan'. There is no need to keep the internal
count.

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

index 2ad66f270b4720669b4d2af4aa9514f9077c5074..20f79b7b4efc2b2cada96c5188bdce88492e0795 100644 (file)
@@ -847,7 +847,6 @@ int das08_common_attach(struct comedi_device *dev, unsigned long iobase)
                s->insn_write = das08_counter_write;
                s->insn_config = das08_counter_config;
                /* Set-up the 8254 structure */
-               devpriv->i8254.channels = 3;
                devpriv->i8254.iobase = iobase + thisboard->i8254_offset;
                i8254_initialize(&devpriv->i8254);
        } else {