staging: comedi: addi_apci_3120: remove test for AI subdevice
The boards supported by this driver all have analog inputs. Remove the test for it. 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f2c872e198
commit
50231a91ef
@@ -194,7 +194,6 @@ static int apci3120_attach_pci(struct comedi_device *dev,
|
||||
|
||||
/* Allocate and Initialise AI Subdevice Structures */
|
||||
s = &dev->subdevices[0];
|
||||
if (this_board->i_NbrAiChannel || (this_board->i_NbrAiChannelDiff)) {
|
||||
dev->read_subdev = s;
|
||||
s->type = COMEDI_SUBD_AI;
|
||||
s->subdev_flags =
|
||||
@@ -222,10 +221,6 @@ static int apci3120_attach_pci(struct comedi_device *dev,
|
||||
s->do_cmd = this_board->ai_cmd;
|
||||
s->cancel = this_board->ai_cancel;
|
||||
|
||||
} else {
|
||||
s->type = COMEDI_SUBD_UNUSED;
|
||||
}
|
||||
|
||||
/* Allocate and Initialise AO Subdevice Structures */
|
||||
s = &dev->subdevices[1];
|
||||
if (this_board->i_NbrAoChannel) {
|
||||
|
Reference in New Issue
Block a user