From 4f8882430ef851405724ff113e96011257f8f71a Mon Sep 17 00:00:00 2001 From: Ben Dooks Date: Tue, 15 Apr 2008 14:34:44 -0700 Subject: [PATCH] --- yaml --- r: 88352 b: refs/heads/master c: 4bb5eba06b4bc57e30b0f6336c9907e85c395197 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/spi/spi_s3c24xx.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index b9aaeaa3ad9e..22522f300668 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 335e92e8a515420bd47a6b0f01cb9a206c0ed6e4 +refs/heads/master: 4bb5eba06b4bc57e30b0f6336c9907e85c395197 diff --git a/trunk/drivers/spi/spi_s3c24xx.c b/trunk/drivers/spi/spi_s3c24xx.c index e75103aac790..6f2c79da984d 100644 --- a/trunk/drivers/spi/spi_s3c24xx.c +++ b/trunk/drivers/spi/spi_s3c24xx.c @@ -192,8 +192,11 @@ static int s3c24xx_spi_txrx(struct spi_device *spi, struct spi_transfer *t) hw->len = t->len; hw->count = 0; + init_completion(&hw->done); + /* send the first byte */ writeb(hw_txbyte(hw, 0), hw->regs + S3C2410_SPTDAT); + wait_for_completion(&hw->done); return hw->count;