From: Abhilash Kesavan Date: Mon, 19 Nov 2012 10:17:17 +0000 (+0530) Subject: i2c: s3c2410: Add fix for i2c suspend/resume X-Git-Tag: v3.8-rc1~54^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=658122fe5e3a72940631ceda3efcb841054d91dc;p=pandora-kernel.git i2c: s3c2410: Add fix for i2c suspend/resume The I2C driver makes a gpio_request during initialization. This request happens again on resume and fails due to the earlier successful request. Re-factor the code to only initialize the gpios during probe. Errors on resume without this: [ 16.020000] s3c-i2c s3c2440-i2c.0: gpio [42] request failed [ 16.020000] s3c-i2c s3c2440-i2c.1: gpio [44] request failed [ 16.020000] s3c-i2c s3c2440-i2c.2: gpio [6] request failed Signed-off-by: Abhilash Kesavan Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed