]> Pileus Git - ~andy/linux/commitdiff
staging: comedi: addi_apci_1032: board does not have analog outputs
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 5 Nov 2012 21:36:09 +0000 (14:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Nov 2012 08:30:55 +0000 (09:30 +0100)
This board does not have analog outputs. Remove the subdevice init for
them.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_1032.c

index c3f5292a7d2b3d867ea344605dea5b0cd42923f2..5a0cd1c1054bc28cce71c010082fa186ebdb9880 100644 (file)
@@ -161,19 +161,8 @@ static int apci1032_attach_pci(struct comedi_device *dev,
 
        /*  Allocate and Initialise AO Subdevice Structures */
        s = &dev->subdevices[1];
-       if (devpriv->s_EeParameters.i_NbrAoChannel) {
-               s->type = COMEDI_SUBD_AO;
-               s->subdev_flags = SDF_WRITEABLE | SDF_GROUND | SDF_COMMON;
-               s->n_chan = devpriv->s_EeParameters.i_NbrAoChannel;
-               s->maxdata = devpriv->s_EeParameters.i_AoMaxdata;
-               s->len_chanlist =
-                       devpriv->s_EeParameters.i_NbrAoChannel;
-               s->range_table = this_board->pr_AoRangelist;
-               s->insn_config = this_board->ao_config;
-               s->insn_write = this_board->ao_write;
-       } else {
-               s->type = COMEDI_SUBD_UNUSED;
-       }
+       s->type = COMEDI_SUBD_UNUSED;
+
        /*  Allocate and Initialise DI Subdevice Structures */
        s = &dev->subdevices[2];
        if (devpriv->s_EeParameters.i_NbrDiChannel) {