mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
staging: comedi: dt2815: 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:
parent
8bd05c98b2
commit
1b2d7f1981
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ static int dt2815_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
|||
/* This is incredibly slow (approx 20 ms) */
|
||||
unsigned int status;
|
||||
|
||||
udelay(1000);
|
||||
usleep_range(1000, 3000);
|
||||
status = inb(dev->iobase + DT2815_STATUS);
|
||||
if (status == 4) {
|
||||
unsigned int program;
|
||||
|
|
|
|||
Loading…
Reference in a new issue