spi: s3c64xx: Add fix for crash in spi suspend/resume
commit45e5033851acfbad1a69dea12caba3adbb162a0a
authorAbhilash Kesavan <a.kesavan@samsung.com>
Wed, 7 Nov 2012 06:10:12 +0000 (7 11:40 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 7 Nov 2012 08:22:21 +0000 (7 09:22 +0100)
treefced9149d3792d9bbf9c95dd4d52834d5c978f0e
parent3d70f8c617a436c7146ecb81df2265b4626dfe89
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.

Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-s3c64xx.c