]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi_s3c24xx must initialize num_chipselect
authorBen Dooks <ben-linux@fluff.org>
Tue, 15 Apr 2008 21:34:46 +0000 (14:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Apr 2008 02:35:41 +0000 (19:35 -0700)
commit2ed089bd32603bfbb3e0dd6bca566186178d58c2
tree82c5419927d9bfaf77aecede0054a815aea058f3
parent3405581db51d99ea16895403ef491dba949562a2
spi: spi_s3c24xx must initialize num_chipselect

The SPI core now expects num_chipselect to be set correctly as due to added
checks on the chip being selected before an transfer is allowed.  This patch
adds a num_cs field to the platform data which needs to be set correctly
before adding the SPI platform device.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spi_s3c24xx.c
include/asm-arm/arch-s3c2410/spi.h