mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2025-01-15 16:25:35 +00:00
mxm_wifiex: fix build error for udelay
When build on 32-bit platform, error log shows: ERROR: modpost: "__bad_udelay" [mwifiex/moal.ko] undefined! 32-bit platform udelay has 2000us limition. Split it as workaround. Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
This commit is contained in:
parent
fd7dd188a1
commit
f45013f26a
1 changed files with 2 additions and 1 deletions
|
@ -3322,7 +3322,8 @@ static int woal_sdiommc_reset_fw(moal_handle *handle)
|
|||
ret = -EFAULT;
|
||||
goto done;
|
||||
}
|
||||
udelay(4000);
|
||||
udelay(2000);
|
||||
udelay(2000);
|
||||
/** wait SOC fully wake up */
|
||||
for (tries = 0; tries < MAX_POLL_TRIES; ++tries) {
|
||||
ret = handle->ops.write_reg(handle, reset_reg, 0xba);
|
||||
|
|
Loading…
Reference in a new issue