aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-au1550.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-au1550.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-au1550.c')
-rw-r--r--drivers/spi/spi-au1550.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-au1550.c b/drivers/spi/spi-au1550.c
index e1965553ab79..1d00d9b397dd 100644
--- a/drivers/spi/spi-au1550.c
+++ b/drivers/spi/spi-au1550.c
@@ -776,7 +776,7 @@ static int au1550_spi_probe(struct platform_device *pdev)
776 hw = spi_master_get_devdata(master); 776 hw = spi_master_get_devdata(master);
777 777
778 hw->master = spi_master_get(master); 778 hw->master = spi_master_get(master);
779 hw->pdata = pdev->dev.platform_data; 779 hw->pdata = dev_get_platdata(&pdev->dev);
780 hw->dev = &pdev->dev; 780 hw->dev = &pdev->dev;
781 781
782 if (hw->pdata == NULL) { 782 if (hw->pdata == NULL) {