Skip to contentSkip to conversation

staging: comedi: das_08: remove the 8254 'channels' usage

PATCH New H Hartley Sweeten 1 participant 1 message Jun 29, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 5/7 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.

Cc Ian Abbott <[email protected]>
Cc Frank Mori Hess <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/comedi/drivers/das08.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/comedi/drivers/das08.c +0 -1
index 2ad66f2..20f79b7 100644
@@ -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 {
Signature · 1 line
1.7.11