diff options
Diffstat (limited to 'drivers/spi/spi-rspi.c')
-rw-r--r-- | drivers/spi/spi-rspi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index 902f2fb902db..b44a6ac3cec9 100644 --- a/drivers/spi/spi-rspi.c +++ b/drivers/spi/spi-rspi.c | |||
@@ -719,7 +719,7 @@ static void rspi_release_dma(struct rspi_data *rspi) | |||
719 | 719 | ||
720 | static int rspi_remove(struct platform_device *pdev) | 720 | static int rspi_remove(struct platform_device *pdev) |
721 | { | 721 | { |
722 | struct rspi_data *rspi = dev_get_drvdata(&pdev->dev); | 722 | struct rspi_data *rspi = platform_get_drvdata(pdev); |
723 | 723 | ||
724 | spi_unregister_master(rspi->master); | 724 | spi_unregister_master(rspi->master); |
725 | rspi_release_dma(rspi); | 725 | rspi_release_dma(rspi); |
@@ -759,7 +759,7 @@ static int rspi_probe(struct platform_device *pdev) | |||
759 | } | 759 | } |
760 | 760 | ||
761 | rspi = spi_master_get_devdata(master); | 761 | rspi = spi_master_get_devdata(master); |
762 | dev_set_drvdata(&pdev->dev, rspi); | 762 | platform_set_drvdata(pdev, rspi); |
763 | 763 | ||
764 | rspi->master = master; | 764 | rspi->master = master; |
765 | rspi->addr = ioremap(res->start, resource_size(res)); | 765 | rspi->addr = ioremap(res->start, resource_size(res)); |