spi: use platform_{get,set}_drvdata()
[deliverable/linux.git] / drivers / spi / spi-sh-hspi.c
index 60cfae51c713818ef630f802db2e2e8c747f98d7..d3a62b9cfff3ec8fbe3874aae1cae5b0e7fe1e21 100644 (file)
@@ -297,7 +297,7 @@ static int hspi_probe(struct platform_device *pdev)
        }
 
        hspi = spi_master_get_devdata(master);
-       dev_set_drvdata(&pdev->dev, hspi);
+       platform_set_drvdata(pdev, hspi);
 
        /* init hspi */
        hspi->master    = master;
@@ -341,7 +341,7 @@ static int hspi_probe(struct platform_device *pdev)
 
 static int hspi_remove(struct platform_device *pdev)
 {
-       struct hspi_priv *hspi = dev_get_drvdata(&pdev->dev);
+       struct hspi_priv *hspi = platform_get_drvdata(pdev);
 
        pm_runtime_disable(&pdev->dev);
 
This page took 0.024364 seconds and 5 git commands to generate.