diff mbox

[212/237] spi: use dev_get_platdata()

Message ID 1387000406-29111-213-git-send-email-horms+renesas@verge.net.au (mailing list archive)
State New, archived
Headers show

Commit Message

Simon Horman Dec. 14, 2013, 5:53 a.m. UTC
From: Jingoo Han <jg1.han@samsung.com>

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 8074cf063e410a2c0cf1704c3b31002e21f5df7c)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>

Conflicts:
	drivers/spi/spi-altera.c
	drivers/spi/spi-ath79.c
	drivers/spi/spi-au1550.c
	drivers/spi/spi-bcm63xx.c
	drivers/spi/spi-bfin-sport.c
	drivers/spi/spi-bfin-v3.c
	drivers/spi/spi-bfin5xx.c
	drivers/spi/spi-coldfire-qspi.c
	drivers/spi/spi-davinci.c
	drivers/spi/spi-ep93xx.c
	drivers/spi/spi-fsl-espi.c
	drivers/spi/spi-fsl-lib.c
	drivers/spi/spi-fsl-spi.c
	drivers/spi/spi-gpio.c
	drivers/spi/spi-mpc512x-psc.c
	drivers/spi/spi-mpc52xx-psc.c
	drivers/spi/spi-nuc900.c
	drivers/spi/spi-oc-tiny.c
	drivers/spi/spi-omap-100k.c
	drivers/spi/spi-omap2-mcspi.c
	drivers/spi/spi-pl022.c
	drivers/spi/spi-rspi.c
	drivers/spi/spi-s3c24xx.c
	drivers/spi/spi-s3c64xx.c
	drivers/spi/spi-sh-msiof.c
	drivers/spi/spi-ti-ssp.c
	drivers/spi/spi-tle62x0.c
	drivers/spi/spi-xilinx.c
---
 drivers/spi/spi-sh-sci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/spi/spi-sh-sci.c b/drivers/spi/spi-sh-sci.c
index 097e5060..8eefeb6 100644
--- a/drivers/spi/spi-sh-sci.c
+++ b/drivers/spi/spi-sh-sci.c
@@ -130,7 +130,7 @@  static int sh_sci_spi_probe(struct platform_device *dev)
 	sp = spi_master_get_devdata(master);
 
 	platform_set_drvdata(dev, sp);
-	sp->info = dev->dev.platform_data;
+	sp->info = dev_get_platdata(&dev->dev);
 
 	/* setup spi bitbang adaptor */
 	sp->bitbang.master = spi_master_get(master);