From: Stanislaw Gruszka Date: Mon, 19 Dec 2016 10:52:55 +0000 (+0100) Subject: rt2800: replace mdelay by usleep on vco calibration. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eb79a8fe94c8a16687112e0a3abcce8225447f6f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git rt2800: replace mdelay by usleep on vco calibration. This procedure can sleep, hence mdelay is not needed. Signed-off-by: Stanislaw Gruszka Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c index 50f39bf115b6..13211c8854cc 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -4352,7 +4352,7 @@ void rt2800_vco_calibration(struct rt2x00_dev *rt2x00dev) return; } - mdelay(1); + usleep_range(1000, 1500); rt2800_register_read(rt2x00dev, TX_PIN_CFG, &tx_pin); if (rt2x00dev->rf_channel <= 14) {