aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ath/ar9170/usb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ar9170/usb.c b/drivers/net/wireless/ath/ar9170/usb.c
index c1c7c427501c..c8121a6a9d3a 100644
--- a/drivers/net/wireless/ath/ar9170/usb.c
+++ b/drivers/net/wireless/ath/ar9170/usb.c
@@ -42,6 +42,7 @@
42#include <linux/usb.h> 42#include <linux/usb.h>
43#include <linux/firmware.h> 43#include <linux/firmware.h>
44#include <linux/etherdevice.h> 44#include <linux/etherdevice.h>
45#include <linux/device.h>
45#include <net/mac80211.h> 46#include <net/mac80211.h>
46#include "ar9170.h" 47#include "ar9170.h"
47#include "cmd.h" 48#include "cmd.h"
@@ -739,10 +740,10 @@ static void ar9170_usb_firmware_failed(struct ar9170_usb *aru)
739 740
740 /* unbind anything failed */ 741 /* unbind anything failed */
741 if (parent) 742 if (parent)
742 down(&parent->sem); 743 device_lock(parent);
743 device_release_driver(&aru->udev->dev); 744 device_release_driver(&aru->udev->dev);
744 if (parent) 745 if (parent)
745 up(&parent->sem); 746 device_unlock(parent);
746} 747}
747 748
748static void ar9170_usb_firmware_finish(const struct firmware *fw, void *context) 749static void ar9170_usb_firmware_finish(const struct firmware *fw, void *context)