projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc75589
)
ar9170: fix for driver-core ABI change
author
Stephen Rothwell
<
[email protected]
>
Wed, 3 Mar 2010 06:08:11 +0000
(17:08 +1100)
committer
John W. Linville
<
[email protected]
>
Tue, 11 May 2010 18:26:49 +0000
(14:26 -0400)
Signed-off-by: Stephen Rothwell <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ar9170/usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ar9170/usb.c
b/drivers/net/wireless/ath/ar9170/usb.c
index c1c7c427501c3da038a0efd06f52349568014763..c8121a6a9d3a414daeb93f118525b4cffeb1b70a 100644
(file)
--- a/
drivers/net/wireless/ath/ar9170/usb.c
+++ b/
drivers/net/wireless/ath/ar9170/usb.c
@@
-42,6
+42,7
@@
#include <linux/usb.h>
#include <linux/firmware.h>
#include <linux/etherdevice.h>
+#include <linux/device.h>
#include <net/mac80211.h>
#include "ar9170.h"
#include "cmd.h"
@@
-739,10
+740,10
@@
static void ar9170_usb_firmware_failed(struct ar9170_usb *aru)
/* unbind anything failed */
if (parent)
- d
own(&parent->sem
);
+ d
evice_lock(parent
);
device_release_driver(&aru->udev->dev);
if (parent)
-
up(&parent->sem
);
+
device_unlock(parent
);
}
static void ar9170_usb_firmware_finish(const struct firmware *fw, void *context)