]> git.baikalelectronics.ru Git - kernel.git/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)
commit4d8ec87cba7df2ff2770706448275ecc08eeef47
treee471e6c09b5aa148eef724bc7ffd04ec5e59c04e
parenta3f8c6acd767afcd5eea524c4ad4f8374e67e949
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