[media] tda10071: change sleeps to more suitable ones
msleep() => usleep_range()
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
diff --git a/drivers/media/dvb/frontends/tda10071.c b/drivers/media/dvb/frontends/tda10071.c
index 352ddc6..0c37434 100644
--- a/drivers/media/dvb/frontends/tda10071.c
+++ b/drivers/media/dvb/frontends/tda10071.c
@@ -167,7 +167,7 @@
if (ret)
goto error;
- msleep(1);
+ usleep_range(200, 5000);
}
dbg("%s: loop=%d", __func__, i);
@@ -298,7 +298,7 @@
if (ret)
goto error;
- msleep(10);
+ usleep_range(10000, 20000);
}
dbg("%s: loop=%d", __func__, i);
@@ -352,7 +352,7 @@
if (ret)
goto error;
- msleep(10);
+ usleep_range(10000, 20000);
}
dbg("%s: loop=%d", __func__, i);
@@ -423,7 +423,7 @@
if (ret)
goto error;
- msleep(10);
+ usleep_range(10000, 20000);
}
dbg("%s: loop=%d", __func__, i);