mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
staging: rtl8188eu: Use unregistering flag from struct usb_interface
Use unregistering flag from struct usb_interface to find driver registration status. Signed-off-by: navin patidar <navin.patidar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fc8b5ae9aa
commit
c824795caf
1 changed files with 1 additions and 1 deletions
|
|
@ -707,7 +707,7 @@ static void rtw_dev_remove(struct usb_interface *pusb_intf)
|
|||
DBG_88E("+rtw_dev_remove\n");
|
||||
RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("+dev_remove()\n"));
|
||||
|
||||
if (usb_drv->drv_registered)
|
||||
if (!pusb_intf->unregistering)
|
||||
padapter->bSurpriseRemoved = true;
|
||||
|
||||
rtw_pm_set_ips(padapter, IPS_NONE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue