staging: comedi: ni_mio_common: usleep_range is preferred over udelay
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 14 Apr 2016 16:58:03 +0000 (09:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 05:17:28 +0000 (22:17 -0700)
Fix the checkpatch.pl issues.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_mio_common.c

index 559efb43b9717a25f7aecd098603ecdbc9b342a3..8a8ba26ac222b144a43ee8586166baf6fef0fda1 100644 (file)
@@ -962,7 +962,7 @@ static int ni_ao_wait_for_dma_load(struct comedi_device *dev)
                 * If we poll too often, the pci bus activity seems
                 * to slow the dma transfer down.
                 */
-               udelay(10);
+               usleep_range(10, 100);
        }
        if (i == timeout) {
                dev_err(dev->class_dev, "timed out waiting for dma load\n");
@@ -3629,7 +3629,7 @@ static int ni_cdo_inttrig(struct comedi_device *dev,
                if (ni_readl(dev, NI_M_CDIO_STATUS_REG) &
                    NI_M_CDIO_STATUS_CDO_FIFO_FULL)
                        break;
-               udelay(10);
+               usleep_range(10, 100);
        }
        if (i == timeout) {
                dev_err(dev->class_dev, "dma failed to fill cdo fifo!\n");