From: Lars-Peter Clausen Date: Tue, 21 Jul 2009 22:33:06 +0000 (+0200) Subject: S3C24XX: GPIO: Fix pin range check in s3c_gpiolib_getchip X-Git-Tag: v2.6.31-rc6~40^2~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c997c0eaac8c68fa23719617484dae29bddaedd;p=pandora-kernel.git S3C24XX: GPIO: Fix pin range check in s3c_gpiolib_getchip In the s3c_gpiolib_getchip implementation for s3c24xx the check whether a pin is in the gpio banks range is reversed. Thus the function returns NULL for valid pins and the gpio chip if its not valid. As a result gpio states are not saved/restored properly during suspend/resume. Signed-off-by: Ben Dooks --- Reading git-diff-tree failed