aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-s3c24xx.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-09-01 08:49:03 -0400
committerMark Brown <broonie@linaro.org>2013-09-01 08:49:03 -0400
commit68aa4cb3374a5f47fe1f7b31e0b5893826c05c69 (patch)
treeaa350fff2ef8ef496d46820487198e9bbfe2bf77 /drivers/spi/spi-s3c24xx.c
parent11c28cfc1e4f32dc6d02373a1e80d7e83584ed21 (diff)
parentb5f9a9d5113efe11a3b9dad600a6f833274da595 (diff)
Merge remote-tracking branch 'spi/topic/pdata' into spi-next
Diffstat (limited to 'drivers/spi/spi-s3c24xx.c')
-rw-r--r--drivers/spi/spi-s3c24xx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c
index 68910b310152..ce318d95a6ee 100644
--- a/drivers/spi/spi-s3c24xx.c
+++ b/drivers/spi/spi-s3c24xx.c
@@ -525,7 +525,7 @@ static int s3c24xx_spi_probe(struct platform_device *pdev)
525 memset(hw, 0, sizeof(struct s3c24xx_spi)); 525 memset(hw, 0, sizeof(struct s3c24xx_spi));
526 526
527 hw->master = spi_master_get(master); 527 hw->master = spi_master_get(master);
528 hw->pdata = pdata = pdev->dev.platform_data; 528 hw->pdata = pdata = dev_get_platdata(&pdev->dev);
529 hw->dev = &pdev->dev; 529 hw->dev = &pdev->dev;
530 530
531 if (pdata == NULL) { 531 if (pdata == NULL) {
@@ -690,7 +690,7 @@ static int s3c24xx_spi_remove(struct platform_device *dev)
690 690
691static int s3c24xx_spi_suspend(struct device *dev) 691static int s3c24xx_spi_suspend(struct device *dev)
692{ 692{
693 struct s3c24xx_spi *hw = platform_get_drvdata(to_platform_device(dev)); 693 struct s3c24xx_spi *hw = dev_get_drvdata(dev);
694 694
695 if (hw->pdata && hw->pdata->gpio_setup) 695 if (hw->pdata && hw->pdata->gpio_setup)
696 hw->pdata->gpio_setup(hw->pdata, 0); 696 hw->pdata->gpio_setup(hw->pdata, 0);
@@ -701,7 +701,7 @@ static int s3c24xx_spi_suspend(struct device *dev)
701 701
702static int s3c24xx_spi_resume(struct device *dev) 702static int s3c24xx_spi_resume(struct device *dev)
703{ 703{
704 struct s3c24xx_spi *hw = platform_get_drvdata(to_platform_device(dev)); 704 struct s3c24xx_spi *hw = dev_get_drvdata(dev);
705 705
706 s3c24xx_spi_initialsetup(hw); 706 s3c24xx_spi_initialsetup(hw);
707 return 0; 707 return 0;