staging: comedi: dt2814: usleep_range is preferred over udelay
authorSaber Rezvani <irsaber@gmail.com>
Thu, 9 Feb 2017 14:44:10 +0000 (18:14 +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/dt2814.c

index 2f903be..09984a6 100644 (file)
@@ -245,7 +245,7 @@ static int dt2814_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                return ret;
 
        outb(0, dev->iobase + DT2814_CSR);
-       udelay(100);
+       usleep_range(100, 200);
        if (inb(dev->iobase + DT2814_CSR) & DT2814_ERR) {
                dev_err(dev->class_dev, "reset error (fatal)\n");
                return -EIO;