]> git.karo-electronics.de Git - linux-beck.git/commit
staging: rtl8712: usleep_range is preferred over udelay
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sat, 10 Oct 2015 12:24:09 +0000 (17:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:43:20 +0000 (20:43 -0700)
commit942eaa867f321380129d8519e5279a67e8f4c04e
tree6979087475418a3d00dbaf107b4572798408008f
parentb33fc7229154341c466cbc5c5b7ca69d16054771
staging: rtl8712: usleep_range is preferred over udelay

Fix checkpatch.pl issue: "CHECK: usleep_range is preferred over
udelay;
see Documentation/timers/timers-howto.txt".
Replace `udelay()` with a call to `usleep_range()` with a reasonable
upper limit determined by the other sleeping functions present.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/hal_init.c