i2c: s3c2410: Add fix for i2c suspend/resume
authorAbhilash Kesavan <a.kesavan@samsung.com>
Mon, 19 Nov 2012 10:17:17 +0000 (15:47 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Mon, 19 Nov 2012 10:54:55 +0000 (11:54 +0100)
commit658122fe5e3a72940631ceda3efcb841054d91dc
tree629d39121fa1babca9e4fbe585734c8d096cc7b6
parent3b2f3ceb3c7f4a8c2d11aa7652842e5ce1b0dcc3
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 <a.kesavan@samsung.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-s3c2410.c
This page took 0.025386 seconds and 5 git commands to generate.