summaryrefslogtreecommitdiff
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-02-21 09:15:18 +0800
committerMark Brown <broonie@linaro.org>2014-02-23 13:39:35 +0900
commitf97b26b05b1dcd307b2f79d1f9e9d99551987dbb (patch)
treeb39bb8bb0493bfba3519a27717556f74f310ffb5 /drivers/spi/spi.c
parent4d94bd21b333c695eba97746b615e2efb30240cc (diff)
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.c2
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);
}