Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115026
b: refs/heads/master
c: 552a715
h: refs/heads/master
v: v3
  • Loading branch information
Andrey Borzenkov authored and John W. Linville committed Oct 15, 2008
1 parent fa186df commit 11c2cf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 33c0360bf74d5fded34cb08d3512ada32ad661e4
refs/heads/master: 552a71515eef5cba9af8bfe608149557059c4463
5 changes: 3 additions & 2 deletions trunk/drivers/net/wireless/orinoco_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ static int orinoco_cs_resume(struct pcmcia_device *link)
struct orinoco_private *priv = netdev_priv(dev);
struct orinoco_pccard *card = priv->card;
int err = 0;
unsigned long flags;

if (! test_bit(0, &card->hard_reset_in_progress)) {
err = orinoco_reinit_firmware(dev);
Expand All @@ -412,7 +413,7 @@ static int orinoco_cs_resume(struct pcmcia_device *link)
return -EIO;
}

spin_lock(&priv->lock);
spin_lock_irqsave(&priv->lock, flags);

netif_device_attach(dev);
priv->hw_unavailable--;
Expand All @@ -424,7 +425,7 @@ static int orinoco_cs_resume(struct pcmcia_device *link)
dev->name, err);
}

spin_unlock(&priv->lock);
spin_unlock_irqrestore(&priv->lock, flags);
}

return err;
Expand Down

0 comments on commit 11c2cf0

Please sign in to comment.