readahead: make context readahead more conservative
[firefly-linux-kernel-4.4.55.git] / drivers / spi / spi-fsl-lib.c
index e947f2d1b2f5a0814f03e561bd389c4b70030127..0b75f26158abbf00b5c781585a28a82e70a31eff 100644 (file)
@@ -122,7 +122,7 @@ const char *mpc8xxx_spi_strmode(unsigned int flags)
 int mpc8xxx_spi_probe(struct device *dev, struct resource *mem,
                        unsigned int irq)
 {
-       struct fsl_spi_platform_data *pdata = dev->platform_data;
+       struct fsl_spi_platform_data *pdata = dev_get_platdata(dev);
        struct spi_master *master;
        struct mpc8xxx_spi *mpc8xxx_spi;
        int ret = 0;