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>
This commit is contained in:
@@ -614,11 +614,6 @@ static void mwifiex_usb_disconnect(struct usb_interface *intf)
|
||||
return;
|
||||
|
||||
if (user_rmmod && !adapter->mfg_mode) {
|
||||
#ifdef CONFIG_PM
|
||||
if (adapter->is_suspended)
|
||||
mwifiex_usb_resume(intf);
|
||||
#endif
|
||||
|
||||
mwifiex_deauthenticate_all(adapter);
|
||||
|
||||
mwifiex_init_shutdown_fw(mwifiex_get_priv(adapter,
|
||||
|
Reference in New Issue
Block a user