From: navin patidar Date: Sun, 1 Jun 2014 12:16:31 +0000 (+0530) Subject: staging: rtl8188eu: Use unregistering flag from struct usb_interface X-Git-Tag: v3.17-rc1~123^2~1856 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c824795caf5f78d18cbdc854befd8f78a94e48f3;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c index 523d5009baef..1841d543d337 100644 --- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c +++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c @@ -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);