From: H Hartley Sweeten Date: Fri, 22 Mar 2013 16:54:41 +0000 (-0700) Subject: staging: comedi: ni_labpc: return error from labpc_counter_set_mode() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~446 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f06563f0132b21ce4258f977c58f9eb01c90cdd3;p=pandora-kernel.git staging: comedi: ni_labpc: return error from labpc_counter_set_mode() Make sure labpc_counter_set_mode() was successfull and return any errno back to the caller. For the if/else conditions that either load the counter of just set the mode, use a common error patch to check for the error. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed