From: Jonathan Cameron Date: Fri, 30 Sep 2011 09:05:40 +0000 (+0100) Subject: staging:iio:adc:ad7606 make gpio request failures more consistent X-Git-Tag: v3.2-rc1~169^2^2~296 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68b41aefa30d9b8713d1c255080863e611a5a226;p=pandora-kernel.git staging:iio:adc:ad7606 make gpio request failures more consistent To my mind, if a gpio is specified in the board file, yet fails to be successfully requested, that is an error condidtion and the driver should not muddle on regardless. This does mean unwinding the gpios on error. Also the free_gpios function is reordered so that it is consistent with the request one (reverse order obviously). This patch is the category of not technically fixing anything, just making the driver be more in line with what a reviewer will expect. Signed-off-by: Jonathan Cameron Acked-by: Michael Hennerich Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed