aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-orion.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-05-23 06:20:40 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-23 10:09:55 -0400
commit24b5a82cf5709a4bc577f42fdaa61b23a7f58f08 (patch)
tree39c17c904a2ac67c8b76b9edccf1da00f3620998 /drivers/spi/spi-orion.c
parentc7788792a5e7b0d5d7f96d0766b4cb6112d47d75 (diff)
spi: use platform_{get,set}_drvdata()
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-orion.c')
-rw-r--r--drivers/spi/spi-orion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c
index 66a5f82cf138..5d90bebaa0fa 100644
--- a/drivers/spi/spi-orion.c
+++ b/drivers/spi/spi-orion.c
@@ -428,7 +428,7 @@ static int orion_spi_probe(struct platform_device *pdev)
428 master->transfer_one_message = orion_spi_transfer_one_message; 428 master->transfer_one_message = orion_spi_transfer_one_message;
429 master->num_chipselect = ORION_NUM_CHIPSELECTS; 429 master->num_chipselect = ORION_NUM_CHIPSELECTS;
430 430
431 dev_set_drvdata(&pdev->dev, master); 431 platform_set_drvdata(pdev, master);
432 432
433 spi = spi_master_get_devdata(master); 433 spi = spi_master_get_devdata(master);
434 spi->master = master; 434 spi->master = master;
@@ -485,7 +485,7 @@ static int orion_spi_remove(struct platform_device *pdev)
485 struct resource *r; 485 struct resource *r;
486 struct orion_spi *spi; 486 struct orion_spi *spi;
487 487
488 master = dev_get_drvdata(&pdev->dev); 488 master = platform_get_drvdata(pdev);
489 spi = spi_master_get_devdata(master); 489 spi = spi_master_get_devdata(master);
490 490
491 clk_disable_unprepare(spi->clk); 491 clk_disable_unprepare(spi->clk);