spi: fix spi_s3c24xx_gpio num_chipselect

The spi master driver must have num_chipselect set to allow the bus to
initialise. Pass this through the platform data.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Ben Dooks and committed by Linus Torvalds b93c35ff e39ea8a2

+2
+1
arch/arm/mach-s3c2410/include/mach/spi-gpio.h
··· 18 18 unsigned long pin_mosi; 19 19 unsigned long pin_miso; 20 20 21 + int num_chipselect; 21 22 int bus_num; 22 23 23 24 void (*chip_select)(struct s3c2410_spigpio_info *spi, int cs);
+1
drivers/spi/spi_s3c24xx_gpio.c
··· 118 118 /* setup spi bitbang adaptor */ 119 119 sp->bitbang.master = spi_master_get(master); 120 120 sp->bitbang.master->bus_num = info->bus_num; 121 + sp->bitbang.master->num_chipselect = info->num_chipselect; 121 122 sp->bitbang.chipselect = s3c2410_spigpio_chipselect; 122 123 123 124 sp->bitbang.txrx_word[SPI_MODE_0] = s3c2410_spigpio_txrx_mode0;