commit | 5dfbd5051c59b5527363f862998175f7aa21d11b | [log] [tgz] |
---|---|---|
author | H Hartley Sweeten <hsweeten@visionengravers.com> | Tue Oct 01 15:13:48 2013 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Oct 03 14:10:03 2013 -0700 |
tree | b4305623f63b5ef11dd7bbc1d09ac447942d8814 | |
parent | 42e705e91f98637a6891eaf8a5c8dcce477b6378 [diff] |
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 <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>