From: Ian Abbott Date: Fri, 8 Nov 2013 15:03:28 +0000 (+0000) Subject: staging: comedi: cancel commands before detaching device X-Git-Tag: v3.14-rc1~150^2~775^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d19db51a0eeb659cd924a9d08b20a2ed4ee46b15;p=pandora-kernel.git staging: comedi: cancel commands before detaching device The comedi core module's handling of the `COMEDI_DEVCONFIG` ioctl will not allow a device to be detached if it is busy. However, comedi devices can also be auto-detached due to a removal of a hardware device. One of the things we should do in that case is cancel any asynchronous commands that are running. Add a new function `comedi_device_cancel_all()` to do that and call it from `comedi_device_detach()`. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed