diff options
Diffstat (limited to 'drivers/spi/spi-fsl-spi.c')
-rw-r--r-- | drivers/spi/spi-fsl-spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c index 14e202ee7036..41e89c3e3edc 100644 --- a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c | |||
@@ -853,7 +853,7 @@ err: | |||
853 | 853 | ||
854 | static int of_fsl_spi_remove(struct platform_device *ofdev) | 854 | static int of_fsl_spi_remove(struct platform_device *ofdev) |
855 | { | 855 | { |
856 | struct spi_master *master = dev_get_drvdata(&ofdev->dev); | 856 | struct spi_master *master = platform_get_drvdata(ofdev); |
857 | struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(master); | 857 | struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(master); |
858 | int ret; | 858 | int ret; |
859 | 859 | ||