mwifiex: replace mdelay with msleep
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 23 Jul 2013 02:17:53 +0000 (19:17 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Jul 2013 15:02:10 +0000 (11:02 -0400)
commita76b20e5ca8a9ec0b45a4150b4ad19e27dd19699
treed431fea52d46183645b01452e990bcbcef869bba
parentd00062e318b1e4a4bec8a8e343efe8bc92d3b109
mwifiex: replace mdelay with msleep

It is observed that when wrong firmware is downloaded for
PCIe card, system hangs for 10 seconds. The reason is mdelay()
is used when firmware status is polled.

Replace mdelay with msleep(non-blocking API) to fix the issue.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/pcie.c
drivers/net/wireless/mwifiex/sdio.c