diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-02-21 05:15:18 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-23 08:39:35 +0400 |
commit | f97b26b05b1dcd307b2f79d1f9e9d99551987dbb (patch) | |
tree | b39bb8bb0493bfba3519a27717556f74f310ffb5 /drivers/spi/spi.c | |
parent | 4d94bd21b333c695eba97746b615e2efb30240cc (diff) | |
download | linux-f97b26b05b1dcd307b2f79d1f9e9d99551987dbb.tar.xz |
spi: core: Replace msleep with usleep_range to get more accurate sleep time
Fixes below checkpatch warning:
WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt
+ msleep(10);
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r-- | drivers/spi/spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 1b53eee2cbca..d5ee965fb285 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -892,7 +892,7 @@ static int spi_stop_queue(struct spi_master *master) */ while ((!list_empty(&master->queue) || master->busy) && limit--) { spin_unlock_irqrestore(&master->queue_lock, flags); - msleep(10); + usleep_range(10000, 11000); spin_lock_irqsave(&master->queue_lock, flags); } |