OSDN Git Service

b43: Replace mdelay with usleep_range in b43_radio_2057_init_post
authorJia-Ju Bai <baijiaju1990@gmail.com>
Tue, 9 Jan 2018 01:40:06 +0000 (09:40 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 11 Jan 2018 19:54:01 +0000 (21:54 +0200)
commit4330b53e9662f8d105da5916899f98d2138dcb1e
tree5bb48a17dd517eb6e048303ce10dd40e2d6a4e2c
parentb7acadaf038740c43515dc1548f43d01cc92823a
b43: Replace mdelay with usleep_range in b43_radio_2057_init_post

b43_radio_2057_init_post is not called in an interrupt handler
nor holding a spinlock.
The function mdelay in it can be replaced with usleep_range,
to reduce busy wait.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/b43/phy_n.c