Lines 30-35
Link Here
|
30 |
|
30 |
|
31 |
#include <linux/usb.h> |
31 |
#include <linux/usb.h> |
32 |
#include <linux/module.h> |
32 |
#include <linux/module.h> |
|
|
33 |
#include <linux/firmware.h> |
33 |
|
34 |
|
34 |
#include "osdep_service.h" |
35 |
#include "osdep_service.h" |
35 |
#include "drv_types.h" |
36 |
#include "drv_types.h" |
Lines 620-625
static void r871xu_dev_remove(struct usb
Link Here
|
620 |
struct _adapter *padapter = netdev_priv(pnetdev); |
621 |
struct _adapter *padapter = netdev_priv(pnetdev); |
621 |
struct usb_device *udev = interface_to_usbdev(pusb_intf); |
622 |
struct usb_device *udev = interface_to_usbdev(pusb_intf); |
622 |
|
623 |
|
|
|
624 |
if (padapter->fw_found) |
625 |
release_firmware(padapter->fw); |
626 |
/* never exit with a firmware callback pending */ |
627 |
wait_for_completion(&padapter->rtl8712_fw_ready); |
623 |
usb_set_intfdata(pusb_intf, NULL); |
628 |
usb_set_intfdata(pusb_intf, NULL); |
624 |
if (padapter) { |
629 |
if (padapter) { |
625 |
if (drvpriv.drv_registered == true) |
630 |
if (drvpriv.drv_registered == true) |