From: Jean Delvare Date: Tue, 5 Mar 2013 08:06:58 +0000 (+0100) Subject: gpio-ich: Fix value returned by ichx_gpio_request X-Git-Tag: v3.9-rc6~21^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ab3a749eb14c96eaf453afe6e678c9c1dab1637;p=pandora-kernel.git gpio-ich: Fix value returned by ichx_gpio_request Per Documentation/gpio.txt, gpio_request callbacks should return 0 on success or a negative value on error. So it is not clear what was meant by letting ichx_gpio_request return 1 in some cases, nor how a caller would interpret it. Align the code with the comment above it and consider pins as available by default. Signed-off-by: Jean Delvare Cc: Grant Likely Acked-by: Peter Tyser Signed-off-by: Linus Walleij --- Reading git-diff-tree failed