staging: comedi: ni_at_a2150: usleep_range is preferred over udelay

Fix the checkpatch.pl issue:
CHECK: usleep_range is preferred over udelay

Signed-off-by: Saber Rezvani <irsaber@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Saber Rezvani 2017-02-10 01:03:27 +03:30 committed by Greg Kroah-Hartman
parent d54b1bdaa3
commit 8bd05c98b2
1 changed files with 1 additions and 1 deletions

View File

@ -757,7 +757,7 @@ static int a2150_attach(struct comedi_device *dev, struct comedi_devconfig *it)
for (i = 0; i < timeout; i++) {
if ((DCAL_BIT & inw(dev->iobase + STATUS_REG)) == 0)
break;
udelay(1000);
usleep_range(1000, 3000);
}
if (i == timeout) {
dev_err(dev->class_dev,