aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-fsl-espi.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 03:58:59 -0400
committerMark Brown <broonie@linaro.org>2013-08-29 08:56:23 -0400
commit8074cf063e410a2c0cf1704c3b31002e21f5df7c (patch)
tree95916834ce2302ed113ecba7622dc09091eb6709 /drivers/spi/spi-fsl-espi.c
parenta4f2ca3e62e6c06f105d7953feeca2a403bdbee3 (diff)
spi: use dev_get_platdata()
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>
Diffstat (limited to 'drivers/spi/spi-fsl-espi.c')
-rw-r--r--drivers/spi/spi-fsl-espi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c
index 6a74d7848d93..b8f1103fe28e 100644
--- a/drivers/spi/spi-fsl-espi.c
+++ b/drivers/spi/spi-fsl-espi.c
@@ -584,7 +584,7 @@ static void fsl_espi_remove(struct mpc8xxx_spi *mspi)
584static struct spi_master * fsl_espi_probe(struct device *dev, 584static struct spi_master * fsl_espi_probe(struct device *dev,
585 struct resource *mem, unsigned int irq) 585 struct resource *mem, unsigned int irq)
586{ 586{
587 struct fsl_spi_platform_data *pdata = dev->platform_data; 587 struct fsl_spi_platform_data *pdata = dev_get_platdata(dev);
588 struct spi_master *master; 588 struct spi_master *master;
589 struct mpc8xxx_spi *mpc8xxx_spi; 589 struct mpc8xxx_spi *mpc8xxx_spi;
590 struct fsl_espi_reg *reg_base; 590 struct fsl_espi_reg *reg_base;
@@ -665,7 +665,7 @@ err:
665static int of_fsl_espi_get_chipselects(struct device *dev) 665static int of_fsl_espi_get_chipselects(struct device *dev)
666{ 666{
667 struct device_node *np = dev->of_node; 667 struct device_node *np = dev->of_node;
668 struct fsl_spi_platform_data *pdata = dev->platform_data; 668 struct fsl_spi_platform_data *pdata = dev_get_platdata(dev);
669 const u32 *prop; 669 const u32 *prop;
670 int len; 670 int len;
671 671