]> err.no Git - linux-2.6/commit
spi: spi_s3c24xx driver must init completion
authorBen Dooks <ben-linux@fluff.org>
Tue, 15 Apr 2008 21:34:44 +0000 (14:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Apr 2008 02:35:41 +0000 (19:35 -0700)
commit4bb5eba06b4bc57e30b0f6336c9907e85c395197
treee471e6c09b5aa148eef724bc7ffd04ec5e59c04e
parent335e92e8a515420bd47a6b0f01cb9a206c0ed6e4
spi: spi_s3c24xx driver must init completion

The s3c24xx_spi_txrx() function should initialise the completion each time
before using it, otherwise we end up with the possibility of returning success
before the interrupt handler has processed all the 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>
drivers/spi/spi_s3c24xx.c