spi: use platform_{get,set}_drvdata()
[deliverable/linux.git] / drivers / spi / spi-fsl-spi.c
index 14e202ee70363832f439b073fffd6ac4b36eaa3f..41e89c3e3edcdd7c1b60b90345afaf6933f5e6c2 100644 (file)
@@ -853,7 +853,7 @@ err:
 
 static int of_fsl_spi_remove(struct platform_device *ofdev)
 {
-       struct spi_master *master = dev_get_drvdata(&ofdev->dev);
+       struct spi_master *master = platform_get_drvdata(ofdev);
        struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(master);
        int ret;
 
This page took 0.025962 seconds and 5 git commands to generate.