Commit 50231a91 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f2c872e1
Loading
Loading
Loading
Loading
+24 −29
Original line number Diff line number Diff line
@@ -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) {