Commit 4f280a69 authored by Saber Rezvani's avatar Saber Rezvani Committed by Greg Kroah-Hartman

staging: comedi: dt2801: usleep_range is preferred over udelay

Fix the checkpatch.pl issue:
CHECK: usleep_range is preferred over udelay
Signed-off-by: default avatarSaber Rezvani <irsaber@gmail.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9fbe9b06
...@@ -343,7 +343,7 @@ static int dt2801_reset(struct comedi_device *dev) ...@@ -343,7 +343,7 @@ static int dt2801_reset(struct comedi_device *dev)
outb_p(DT_C_STOP, dev->iobase + DT2801_CMD); outb_p(DT_C_STOP, dev->iobase + DT2801_CMD);
/* dt2801_wait_for_ready(dev); */ /* dt2801_wait_for_ready(dev); */
udelay(100); usleep_range(100, 200);
timeout = 10000; timeout = 10000;
do { do {
stat = inb_p(dev->iobase + DT2801_STATUS); stat = inb_p(dev->iobase + DT2801_STATUS);
...@@ -358,7 +358,7 @@ static int dt2801_reset(struct comedi_device *dev) ...@@ -358,7 +358,7 @@ static int dt2801_reset(struct comedi_device *dev)
outb_p(DT_C_RESET, dev->iobase + DT2801_CMD); outb_p(DT_C_RESET, dev->iobase + DT2801_CMD);
/* dt2801_writecmd(dev,DT_C_RESET); */ /* dt2801_writecmd(dev,DT_C_RESET); */
udelay(100); usleep_range(100, 200);
timeout = 10000; timeout = 10000;
do { do {
stat = inb_p(dev->iobase + DT2801_STATUS); stat = inb_p(dev->iobase + DT2801_STATUS);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment