staging: comedi: quatech_daqp_cs: ao subdevice does not support commands
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 4 Feb 2013 23:42:32 +0000 (16:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Feb 2013 19:18:57 +0000 (11:18 -0800)
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 <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/quatech_daqp_cs.c

index 6eab3bbb378bc09b41e94ac728c8e470556d61b7..40d525c5778620177b20e693ac1884f16b9e80fe 100644 (file)
@@ -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;