From: H Hartley Sweeten Date: Mon, 4 Feb 2013 23:42:32 +0000 (-0700) Subject: staging: comedi: quatech_daqp_cs: ao subdevice does not support commands X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9c1dcce9c64c2b53042f2cfb730348201d176855;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: comedi: quatech_daqp_cs: ao subdevice does not support commands 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/quatech_daqp_cs.c b/drivers/staging/comedi/drivers/quatech_daqp_cs.c index 6eab3bbb378b..40d525c57786 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;