|
@@ -30,6 +30,7 @@
|
|
|
|
|
|
#include <linux/usb.h>
|
|
|
#include <linux/module.h>
|
|
|
+#include <linux/firmware.h>
|
|
|
|
|
|
#include "osdep_service.h"
|
|
|
#include "drv_types.h"
|
|
@@ -620,6 +621,10 @@ static void r871xu_dev_remove(struct usb_interface *pusb_intf)
|
|
|
struct _adapter *padapter = netdev_priv(pnetdev);
|
|
|
struct usb_device *udev = interface_to_usbdev(pusb_intf);
|
|
|
|
|
|
+ if (padapter->fw_found)
|
|
|
+ release_firmware(padapter->fw);
|
|
|
+ /* never exit with a firmware callback pending */
|
|
|
+ wait_for_completion(&padapter->rtl8712_fw_ready);
|
|
|
usb_set_intfdata(pusb_intf, NULL);
|
|
|
if (padapter) {
|
|
|
if (drvpriv.drv_registered == true)
|