]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
rt2800: replace mdelay by usleep on vco calibration.
authorStanislaw Gruszka <sgruszka@redhat.com>
Mon, 19 Dec 2016 10:52:55 +0000 (11:52 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 30 Dec 2016 11:34:21 +0000 (13:34 +0200)
This procedure can sleep, hence mdelay is not needed.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2800lib.c

index 50f39bf115b677bdbcb94f2cc16608f135faf2c0..13211c8854cc042e14774db4226dc626fc516c2a 100644 (file)
@@ -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) {