From: H Hartley Sweeten Date: Tue, 4 Nov 2014 17:55:31 +0000 (-0700) Subject: staging: comedi: addi_apci_3120: enable AI async commands X-Git-Tag: v3.19-rc1~66^2~248 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c58f9bb622ca06387200a6f9ef77cdc5c531dfb2;p=karo-tx-linux.git staging: comedi: addi_apci_3120: enable AI async commands The async command support should now work. Enable the hook up of the command support functions in apci3120_auto_attach(). Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/addi_apci_3120.c b/drivers/staging/comedi/drivers/addi_apci_3120.c index ba96fe5910e1..f00b9ba070b7 100644 --- a/drivers/staging/comedi/drivers/addi_apci_3120.c +++ b/drivers/staging/comedi/drivers/addi_apci_3120.c @@ -1038,7 +1038,7 @@ static int apci3120_auto_attach(struct comedi_device *dev, s->maxdata = this_board->ai_is_16bit ? 0xffff : 0x0fff; s->range_table = &apci3120_ai_range; s->insn_read = apci3120_ai_insn_read; - if (0 /* dev->irq */) { + if (dev->irq) { dev->read_subdev = s; s->subdev_flags |= SDF_CMD_READ; s->len_chanlist = s->n_chan;