diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-12-01 13:13:57 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-01 19:55:24 -0800 |
commit | b93c35ff39d19f20c47c06c206986afefecc777a (patch) | |
tree | 3f5cb5f35923478ee6b725fbf3fcec8928466725 /drivers/spi | |
parent | e39ea8a2def1fcb203ed0183317124348962e351 (diff) | |
download | kernel_samsung_espresso10-b93c35ff39d19f20c47c06c206986afefecc777a.zip kernel_samsung_espresso10-b93c35ff39d19f20c47c06c206986afefecc777a.tar.gz kernel_samsung_espresso10-b93c35ff39d19f20c47c06c206986afefecc777a.tar.bz2 |
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi_s3c24xx_gpio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi_s3c24xx_gpio.c b/drivers/spi/spi_s3c24xx_gpio.c index 8bb2b4e..f2447a5 100644 --- a/drivers/spi/spi_s3c24xx_gpio.c +++ b/drivers/spi/spi_s3c24xx_gpio.c @@ -118,6 +118,7 @@ static int s3c2410_spigpio_probe(struct platform_device *dev) /* setup spi bitbang adaptor */ sp->bitbang.master = spi_master_get(master); sp->bitbang.master->bus_num = info->bus_num; + sp->bitbang.master->num_chipselect = info->num_chipselect; sp->bitbang.chipselect = s3c2410_spigpio_chipselect; sp->bitbang.txrx_word[SPI_MODE_0] = s3c2410_spigpio_txrx_mode0; |