summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-06-29 18:01:22 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-06 22:46:08 (GMT)
commitf97733d9885ece037f44dbb8083eeb772f549415 (patch)
tree42d360dbb3cd43b3d3937955e4b650aeba1519e3
parent6daf1e0547ab6b9797a45ea9f45a035a5abb7821 (diff)
downloadlinux-fsl-qoriq-f97733d9885ece037f44dbb8083eeb772f549415.tar.xz
staging: comedi: das_08: remove the 8254 'channels' usage
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>
-rw-r--r--drivers/staging/comedi/drivers/das08.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/das08.c b/drivers/staging/comedi/drivers/das08.c
index 2ad66f2..20f79b7 100644
--- a/drivers/staging/comedi/drivers/das08.c
+++ b/drivers/staging/comedi/drivers/das08.c
@@ -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 {