1 --- a/arch/mips/include/asm/mach-ath79/ath79_spi_platform.h
2 +++ b/arch/mips/include/asm/mach-ath79/ath79_spi_platform.h
4 struct ath79_spi_platform_data {
6 unsigned num_chipselect;
10 #endif /* _ATH79_SPI_PLATFORM_H */
11 --- a/drivers/spi/spi-ath79.c
12 +++ b/drivers/spi/spi-ath79.c
13 @@ -231,6 +231,7 @@ static int ath79_spi_probe(struct platfo
15 master->bus_num = pdata->bus_num;
16 master->num_chipselect = pdata->num_chipselect;
17 + master->cs_gpios = pdata->cs_gpios;
20 sp->bitbang.master = master;