diff options
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi_s3c24xx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/spi/spi_s3c24xx.c b/drivers/spi/spi_s3c24xx.c index 3eb414b84a9d..c252cbac00f1 100644 --- a/drivers/spi/spi_s3c24xx.c +++ b/drivers/spi/spi_s3c24xx.c | |||
@@ -247,6 +247,9 @@ static void s3c24xx_spi_initialsetup(struct s3c24xx_spi *hw) | |||
247 | writeb(0xff, hw->regs + S3C2410_SPPRE); | 247 | writeb(0xff, hw->regs + S3C2410_SPPRE); |
248 | writeb(SPPIN_DEFAULT, hw->regs + S3C2410_SPPIN); | 248 | writeb(SPPIN_DEFAULT, hw->regs + S3C2410_SPPIN); |
249 | writeb(SPCON_DEFAULT, hw->regs + S3C2410_SPCON); | 249 | writeb(SPCON_DEFAULT, hw->regs + S3C2410_SPCON); |
250 | |||
251 | if (hw->pdata && hw->pdata->gpio_setup) | ||
252 | hw->pdata->gpio_setup(hw->pdata, 1); | ||
250 | } | 253 | } |
251 | 254 | ||
252 | static int __init s3c24xx_spi_probe(struct platform_device *pdev) | 255 | static int __init s3c24xx_spi_probe(struct platform_device *pdev) |
@@ -412,6 +415,9 @@ static int s3c24xx_spi_suspend(struct platform_device *pdev, pm_message_t msg) | |||
412 | { | 415 | { |
413 | struct s3c24xx_spi *hw = platform_get_drvdata(pdev); | 416 | struct s3c24xx_spi *hw = platform_get_drvdata(pdev); |
414 | 417 | ||
418 | if (hw->pdata && hw->pdata->gpio_setup) | ||
419 | hw->pdata->gpio_setup(hw->pdata, 0); | ||
420 | |||
415 | clk_disable(hw->clk); | 421 | clk_disable(hw->clk); |
416 | return 0; | 422 | return 0; |
417 | } | 423 | } |