summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/marvell/mwifiex/sdio.c
diff options
context:
space:
mode:
authorBrian Norris <briannorris@chromium.org>2016-11-18 17:00:28 +0300
committerKalle Valo <kvalo@codeaurora.org>2016-11-19 10:18:49 +0300
commit7ccdf72f9128104fb1dd1cf46856562380ef8f44 (patch)
treede43a61b1ded81c53cc2489f56d9be01531bf836 /drivers/net/wireless/marvell/mwifiex/sdio.c
parenta1beec4b2c6f74365e469df08270a3b847006bec (diff)
downloadlinux-7ccdf72f9128104fb1dd1cf46856562380ef8f44.tar.xz
mwifiex: don't pretend to resume while remove()'ing
The device core will not allow suspend() to race with remove(). Signed-off-by: Brian Norris <briannorris@chromium.org> Tested-by: Xinming Hu <huxm@marvell.com> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/sdio.c')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/sdio.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c
index 5312ffb019c8..2f5b01fbc04e 100644
--- a/drivers/net/wireless/marvell/mwifiex/sdio.c
+++ b/drivers/net/wireless/marvell/mwifiex/sdio.c
@@ -244,9 +244,6 @@ mwifiex_sdio_remove(struct sdio_func *func)
mwifiex_dbg(adapter, INFO, "info: SDIO func num=%d\n", func->num);
if (user_rmmod && !adapter->mfg_mode) {
- if (adapter->is_suspended)
- mwifiex_sdio_resume(adapter->dev);
-
mwifiex_deauthenticate_all(adapter);
priv = mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY);