spi: s3c64xx: Add fix for crash in spi suspend/resume
authorAbhilash Kesavan <a.kesavan@samsung.com>
Mon, 25 Jun 2012 20:08:33 +0000 (13:08 -0700)
committerOlof Johansson <olofj@chromium.org>
Tue, 26 Jun 2012 18:21:01 +0000 (11:21 -0700)
commit99609e03fb05bb8f66dd87836368767b021d4b15
tree6276f4d1c9c077b59adcc3e5e7fad4ccaa97fbbd
parentfefbe3804d7b4a4e95b1122576c9e77cf6cb520e
spi: s3c64xx: Add fix for crash in spi suspend/resume

The SPI driver makes a gpio_request during initialization. The requested
gpios need to be populated as part of the s3c64xx_spi_driver_data so that
they can be released during suspend and requested again during resume.
Add the missing code to save the requested gpios as part of the driver
data. This fixes a SPI driver suspend crash.

BUG=chrome-os-partner:8921
TEST=Test S2R on Daisy and ensure that the SPI suspend crash has gone
away.

Change-Id: I623934f084b8d7d4070f70e7878585ece0e6fd85
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Reviewed-on: https://gerrit-int.chromium.org/20776
Reviewed-by: Bryan Freed <bfreed@google.com>
Reviewed-by: Doug Anderson <dianders@google.com>
Reviewed-by: Olof Johansson <olofj@google.com>
Commit-Ready: Olof Johansson <olofj@google.com>
drivers/spi/spi-s3c64xx.c