From: Ian Abbott Date: Thu, 4 Apr 2013 13:58:59 +0000 (+0100) Subject: staging: comedi: move detach out of post-config X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~289 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74ece108f9e55e7967d24a61e30f43e3aceb4809;p=pandora-kernel.git 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 Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed