]> git.baikalelectronics.ru Git - kernel.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)
commit20c9f699507465348d22880444b68da0faeb5f90
tree6979087475418a3d00dbaf107b4572798408008f
parentec114cf2d6dd1fd40dd166c7142c4bfd6aafa156
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