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-coldfire-qspi.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-coldfire-qspi.c')
-rw-r--r-- | drivers/spi/spi-coldfire-qspi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-coldfire-qspi.c b/drivers/spi/spi-coldfire-qspi.c index 1381acbe19c5..8e07928cadb3 100644 --- a/drivers/spi/spi-coldfire-qspi.c +++ b/drivers/spi/spi-coldfire-qspi.c | |||
@@ -558,7 +558,7 @@ static int mcfqspi_resume(struct device *dev) | |||
558 | #ifdef CONFIG_PM_RUNTIME | 558 | #ifdef CONFIG_PM_RUNTIME |
559 | static int mcfqspi_runtime_suspend(struct device *dev) | 559 | static int mcfqspi_runtime_suspend(struct device *dev) |
560 | { | 560 | { |
561 | struct mcfqspi *mcfqspi = platform_get_drvdata(to_platform_device(dev)); | 561 | struct mcfqspi *mcfqspi = dev_get_drvdata(dev); |
562 | 562 | ||
563 | clk_disable(mcfqspi->clk); | 563 | clk_disable(mcfqspi->clk); |
564 | 564 | ||
@@ -567,7 +567,7 @@ static int mcfqspi_runtime_suspend(struct device *dev) | |||
567 | 567 | ||
568 | static int mcfqspi_runtime_resume(struct device *dev) | 568 | static int mcfqspi_runtime_resume(struct device *dev) |
569 | { | 569 | { |
570 | struct mcfqspi *mcfqspi = platform_get_drvdata(to_platform_device(dev)); | 570 | struct mcfqspi *mcfqspi = dev_get_drvdata(dev); |
571 | 571 | ||
572 | clk_enable(mcfqspi->clk); | 572 | clk_enable(mcfqspi->clk); |
573 | 573 | ||