From: Catalina Mocanu Date: Wed, 24 Sep 2014 20:54:15 +0000 (-0700) Subject: staging: ft1000-usb: use usleep_range instead of msleep X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c0a7b1cbbf806e32278795893087047ed28f2a5b;p=openwrt%2Fstaging%2Fblogic.git staging: ft1000-usb: use usleep_range instead of msleep This fixes the following checkpatch.pl warning: WARNING : msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt Signed-off-by: Catalina Mocanu Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c b/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c index 2d6d79c10d6c..39be30c0eedf 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_usb.c @@ -41,7 +41,7 @@ static int ft1000_poll_thread(void *arg) int ret; while (!kthread_should_stop()) { - msleep(10); + usleep_range(10000, 11000); if (!gPollingfailed) { ret = ft1000_poll(arg); if (ret != 0) {