]> git.openfabrics.org - ~emulex/infiniband.git/commit
staging: comedi: move detach out of post-config
authorIan Abbott <abbotti@mev.co.uk>
Thu, 4 Apr 2013 13:58:59 +0000 (14:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 21:33:18 +0000 (14:33 -0700)
commit74ece108f9e55e7967d24a61e30f43e3aceb4809
treefb421f41b3bb2971498d5902d7fc470f19602427
parent016599f589a50feee9f515dc1e7879e390ae229f
staging: comedi: move detach out of post-config

`comedi_device_postconfig()` calls `comedi_device_detach()` on failure.
Remove that call and make the callers of `comedi_device_postconfig()`
call `comedi_device_detach()` themselves if it returns an error.  This
seems more logical as the callers of `comedi_device_postconfig()` called
`comedi_device_detach()` anyway if they didn't call
`comedi_device_postconfig()`.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers.c