Staging: xgifb: Replace udelay, mdelay functions with usleep_range
authorNavya Sri Nizamkari <navyasri.tech@gmail.com>
Thu, 22 Oct 2015 14:51:22 +0000 (20:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:11:30 +0000 (19:11 -0700)
commitd8acac9421fedb008f2ef04763c3912d138ac936
treedfd0ecc92574f2f2ae299611c607037334b0b004
parent6fd9a2a19c241ce22f05cdc82b8eefb7f8a3e92f
Staging: xgifb: Replace udelay, mdelay functions with usleep_range

This patch fixes the checkpatch.pl check:

CHECK: usleep_range is preferred over udelay.

Replace mdelay with usleep_range function too.
Add 1 millisecond to the delay time to get a
reasonable upper limit which saves one wakeup call.
Do same throughout the file.

Signed-off-by: Navya Sri Nizamkari <navyasri.tech@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/vb_init.c