The analog output subdevice does not support aynchronous commands.
Don't set the dev->write_subdev to this subdevice.

Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: Ian Abbott <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/comedi/drivers/quatech_daqp_cs.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/comedi/drivers/quatech_daqp_cs.c 
b/drivers/staging/comedi/drivers/quatech_daqp_cs.c
index 6eab3bb..40d525c 100644
--- a/drivers/staging/comedi/drivers/quatech_daqp_cs.c
+++ b/drivers/staging/comedi/drivers/quatech_daqp_cs.c
@@ -763,7 +763,6 @@ static int daqp_auto_attach(struct comedi_device *dev,
        s->cancel       = daqp_ai_cancel;
 
        s = &dev->subdevices[1];
-       dev->write_subdev = s;
        s->private      = local;
        s->type         = COMEDI_SUBD_AO;
        s->subdev_flags = SDF_WRITEABLE;
-- 
1.8.1.1.293.gfe73786

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to