diff options
Diffstat (limited to 'drivers/spi/spi-omap2-mcspi.c')
-rw-r--r-- | drivers/spi/spi-omap2-mcspi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 86d2158946bb..1a75aefd1504 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi-omap2-mcspi.c | |||
@@ -1204,7 +1204,7 @@ static int omap2_mcspi_probe(struct platform_device *pdev) | |||
1204 | master->cleanup = omap2_mcspi_cleanup; | 1204 | master->cleanup = omap2_mcspi_cleanup; |
1205 | master->dev.of_node = node; | 1205 | master->dev.of_node = node; |
1206 | 1206 | ||
1207 | dev_set_drvdata(&pdev->dev, master); | 1207 | platform_set_drvdata(pdev, master); |
1208 | 1208 | ||
1209 | mcspi = spi_master_get_devdata(master); | 1209 | mcspi = spi_master_get_devdata(master); |
1210 | mcspi->master = master; | 1210 | mcspi->master = master; |
@@ -1318,7 +1318,7 @@ static int omap2_mcspi_remove(struct platform_device *pdev) | |||
1318 | struct omap2_mcspi *mcspi; | 1318 | struct omap2_mcspi *mcspi; |
1319 | struct omap2_mcspi_dma *dma_channels; | 1319 | struct omap2_mcspi_dma *dma_channels; |
1320 | 1320 | ||
1321 | master = dev_get_drvdata(&pdev->dev); | 1321 | master = platform_get_drvdata(pdev); |
1322 | mcspi = spi_master_get_devdata(master); | 1322 | mcspi = spi_master_get_devdata(master); |
1323 | dma_channels = mcspi->dma_channels; | 1323 | dma_channels = mcspi->dma_channels; |
1324 | 1324 | ||