From: H Hartley Sweeten Date: Tue, 1 Oct 2013 22:13:48 +0000 (-0700) Subject: staging: comedi: ni_6527: introduce ni6527_reset() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~464 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dfbd5051c59b5527363f862998175f7aa21d11b;p=pandora-kernel.git staging: comedi: ni_6527: introduce ni6527_reset() Factor the board reset code out of the (*attach). Do the reset as soon as possible to ensure the interrupts are disabled. For convienence, use the ni6257_reset() during the (*detach) instead of just disabling the interrupts. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed