staging: comedi: ni_at_a2150: usleep_range is preferred over udelay
authorSaber Rezvani <irsaber@gmail.com>
Thu, 9 Feb 2017 21:33:27 +0000 (01:03 +0330)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Feb 2017 12:22:08 +0000 (13:22 +0100)
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>
drivers/staging/comedi/drivers/ni_at_a2150.c

index 5a4dcc6e61d844cae77164ba9db85d8f34ac0005..c69cd676f357c790d689a070cc91111c905cd818 100644 (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,