From: Surya Seetharaman Date: Fri, 31 Oct 2014 11:57:54 +0000 (+0530) Subject: Staging: rtl8188eu: rtw_pwrctrl: fixed checkpatch warning. X-Git-Tag: v4.14-rc1~6283^2~496 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86ca02dae72562bbd95b21dfc884a9a7d82ac387;p=platform%2Fkernel%2Flinux-rpi.git Staging: rtl8188eu: rtw_pwrctrl: fixed checkpatch warning. WARNING: msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt Signed-off-by: Surya Seetharaman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c b/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c index 768dbee..044d849 100644 --- a/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c +++ b/drivers/staging/rtl8188eu/core/rtw_pwrctrl.c @@ -577,7 +577,7 @@ int _rtw_pwr_wakeup(struct adapter *padapter, u32 ips_deffer_ms, const char *cal if (pwrpriv->ps_processing) { DBG_88E("%s wait ps_processing...\n", __func__); while (pwrpriv->ps_processing && rtw_get_passing_time_ms(start) <= 3000) - msleep(10); + usleep_range(1000, 3000); if (pwrpriv->ps_processing) DBG_88E("%s wait ps_processing timeout\n", __func__); else