Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27346
b: refs/heads/master
c: 6cbaa33
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Roskin authored and John W. Linville committed May 5, 2006
1 parent 7c80951 commit e57a249
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 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: 9a568da2097ad3701ca575cb6d360d56ffeee446
refs/heads/master: 6cbaa330f1022abfc7419aaa11ee1a9291f0beb0
7 changes: 3 additions & 4 deletions trunk/drivers/net/wireless/orinoco_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ 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 @@ -425,7 +424,7 @@ static int orinoco_cs_resume(struct pcmcia_device *link)
return -EIO;
}

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

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

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

return 0;
return err;
}


Expand Down
7 changes: 3 additions & 4 deletions trunk/drivers/net/wireless/spectrum_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,11 +866,10 @@ spectrum_cs_suspend(struct pcmcia_device *link)
{
struct net_device *dev = link->priv;
struct orinoco_private *priv = netdev_priv(dev);
unsigned long flags;
int err = 0;

/* Mark the device as stopped, to block IO until later */
spin_lock_irqsave(&priv->lock, flags);
spin_lock(&priv->lock);

err = __orinoco_down(dev);
if (err)
Expand All @@ -880,9 +879,9 @@ spectrum_cs_suspend(struct pcmcia_device *link)
netif_device_detach(dev);
priv->hw_unavailable++;

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

return 0;
return err;
}

static int
Expand Down

0 comments on commit e57a249

Please sign in to comment.