diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-08-09 03:35:16 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-29 08:57:14 -0400 |
commit | a1216394e620d0dfbb03c712ae3210e7b77c9e11 (patch) | |
tree | 39a4deca074fea48037335d218c27f3b04123cec /drivers/spi/spi-s3c24xx.c | |
parent | 8074cf063e410a2c0cf1704c3b31002e21f5df7c (diff) |
spi: Use dev_get_drvdata at appropriate places
Use dev_get_drvdata() instead of platform_get_drvdata(to_platform_device(dev)).
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-s3c24xx.c')
-rw-r--r-- | drivers/spi/spi-s3c24xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c index 5d43a2881f5a..ce318d95a6ee 100644 --- a/drivers/spi/spi-s3c24xx.c +++ b/drivers/spi/spi-s3c24xx.c | |||
@@ -690,7 +690,7 @@ static int s3c24xx_spi_remove(struct platform_device *dev) | |||
690 | 690 | ||
691 | static int s3c24xx_spi_suspend(struct device *dev) | 691 | static 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 | ||
702 | static int s3c24xx_spi_resume(struct device *dev) | 702 | static 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; |