spi: Replace all spi->chip_select and spi->cs_gpiod references with function call
[linux-2.6-microblaze.git] / drivers / spi / spi-fsl-spi.c
index 725d043..702756c 100644 (file)
@@ -503,7 +503,7 @@ static void fsl_spi_grlib_cs_control(struct spi_device *spi, bool on)
        struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master);
        struct fsl_spi_reg __iomem *reg_base = mpc8xxx_spi->reg_base;
        u32 slvsel;
-       u16 cs = spi->chip_select;
+       u16 cs = spi_get_chipselect(spi, 0);
 
        if (cs < mpc8xxx_spi->native_chipselects) {
                slvsel = mpc8xxx_spi_read_reg(&reg_base->slvsel);