diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2017-12-24 18:16:55 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-08 16:45:45 +0100 |
commit | 23cb746b5e9dea31948b159adbc7e77af57ea24e (patch) | |
tree | e0f212907d7b6a42c8be2ca4bbe8079bb65ad6b9 | |
parent | 357f862bd214bf3206d5450047b9c0348edb430a (diff) | |
download | op-kernel-dev-23cb746b5e9dea31948b159adbc7e77af57ea24e.zip op-kernel-dev-23cb746b5e9dea31948b159adbc7e77af57ea24e.tar.gz |
staging: rtl8192u: Replace mdelay with msleep in rtl8192_usb_probe
rtl8192_usb_probe is not called in an interrupt handler
nor holding a spinlock.
The function mdelay in it can be replaced with msleep,
to avoid busy wait.
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
-rw-r--r-- | drivers/staging/rtl8192u/r8192U_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 09f66b3..3c300f7 100644 --- a/drivers/staging/rtl8192u/r8192U_core.c +++ b/drivers/staging/rtl8192u/r8192U_core.c @@ -4998,7 +4998,7 @@ fail: kfree(priv->pFirmware); priv->pFirmware = NULL; rtl8192_usb_deleteendpoints(dev); - mdelay(10); + msleep(10); free_ieee80211(dev); RT_TRACE(COMP_ERR, "wlan driver load failed\n"); |