mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 20:22:08 +02: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
|
|
@ -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 New Issue
Block a user