Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134165
b: refs/heads/master
c: c88a768
h: refs/heads/master
i:
  134163: 7942c99
v: v3
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Jan 29, 2009
1 parent 8feef8f commit 93884aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c656bbb582cebd988d8c39c4912722dc47578eab
refs/heads/master: c88a768d7ed1bc38eedf18d16419ef2f01cd2d0d
14 changes: 8 additions & 6 deletions trunk/drivers/net/wireless/p54/p54usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,14 +430,16 @@ static const char p54u_firmware_upload_3887[] = "<\r";
static int p54u_device_reset_3887(struct ieee80211_hw *dev)
{
struct p54u_priv *priv = dev->priv;
int ret, lock;
int ret, lock = (priv->intf->condition != USB_INTERFACE_BINDING);
u8 buf[4];

ret = lock = usb_lock_device_for_reset(priv->udev, priv->intf);
if (ret < 0) {
dev_err(&priv->udev->dev, "(p54usb) unable to lock device for "
"reset: %d\n", ret);
return ret;
if (lock) {
ret = usb_lock_device_for_reset(priv->udev, priv->intf);
if (ret < 0) {
dev_err(&priv->udev->dev, "(p54usb) unable to lock "
" device for reset: %d\n", ret);
return ret;
}
}

ret = usb_reset_device(priv->udev);
Expand Down

0 comments on commit 93884aa

Please sign in to comment.