diff options
Diffstat (limited to 'drivers/spi/spi-s3c24xx.c')
-rw-r--r-- | drivers/spi/spi-s3c24xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c index f36bc320a807..4e7d1bfed7e6 100644 --- a/drivers/spi/spi-s3c24xx.c +++ b/drivers/spi/spi-s3c24xx.c | |||
@@ -198,12 +198,12 @@ static int s3c24xx_spi_setup(struct spi_device *spi) | |||
198 | if (ret) | 198 | if (ret) |
199 | return ret; | 199 | return ret; |
200 | 200 | ||
201 | spin_lock(&hw->bitbang.lock); | 201 | mutex_lock(&hw->bitbang.lock); |
202 | if (!hw->bitbang.busy) { | 202 | if (!hw->bitbang.busy) { |
203 | hw->bitbang.chipselect(spi, BITBANG_CS_INACTIVE); | 203 | hw->bitbang.chipselect(spi, BITBANG_CS_INACTIVE); |
204 | /* need to ndelay for 0.5 clocktick ? */ | 204 | /* need to ndelay for 0.5 clocktick ? */ |
205 | } | 205 | } |
206 | spin_unlock(&hw->bitbang.lock); | 206 | mutex_unlock(&hw->bitbang.lock); |
207 | 207 | ||
208 | return 0; | 208 | return 0; |
209 | } | 209 | } |