Skip to content

Commit

Permalink
staging: comedi: das_08: remove the 8254 'channels' usage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jul 6, 2012
1 parent 6daf1e0 commit f97733d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/staging/comedi/drivers/das08.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f97733d

Please sign in to comment.