staging: comedi: dt2811: remove disabled code
There is no reason the (*attach) should be trying to read an analog input sample. Remove this disabled code. 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>
This commit is contained in:
parent
a40ff88e58
commit
6e4e38b5e6
|
@ -299,23 +299,15 @@ static int dt2811_do_insn_bits(struct comedi_device *dev,
|
||||||
|
|
||||||
static int dt2811_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
static int dt2811_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||||
{
|
{
|
||||||
/* int i; */
|
|
||||||
const struct dt2811_board *board = dev->board_ptr;
|
const struct dt2811_board *board = dev->board_ptr;
|
||||||
struct dt2811_private *devpriv;
|
struct dt2811_private *devpriv;
|
||||||
int ret;
|
|
||||||
struct comedi_subdevice *s;
|
struct comedi_subdevice *s;
|
||||||
|
int ret;
|
||||||
|
|
||||||
ret = comedi_request_region(dev, it->options[0], 0x8);
|
ret = comedi_request_region(dev, it->options[0], 0x8);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
#if 0
|
|
||||||
outb(0, dev->iobase + DT2811_ADCSR);
|
|
||||||
udelay(100);
|
|
||||||
i = inb(dev->iobase + DT2811_ADDATLO);
|
|
||||||
i = inb(dev->iobase + DT2811_ADDATHI);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ret = comedi_alloc_subdevices(dev, 4);
|
ret = comedi_alloc_subdevices(dev, 4);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue