Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13521
b: refs/heads/master
c: 6c2f426
h: refs/heads/master
i:
  13519: 71f1cff
v: v3
  • Loading branch information
Francois Romieu authored and Jeff Garzik committed Nov 7, 2005
1 parent 813e8c3 commit 8b9e292
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 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: 65b984f26f16e97168ee29e53145055412f38a23
refs/heads/master: 6c2f4267833f453156f8f439cc32eb4c92f357b4
22 changes: 9 additions & 13 deletions trunk/drivers/net/b44.c
Original file line number Diff line number Diff line change
Expand Up @@ -1388,13 +1388,7 @@ static int b44_open(struct net_device *dev)

err = b44_alloc_consistent(bp);
if (err)
return err;

err = request_irq(dev->irq, b44_interrupt, SA_SHIRQ, dev->name, dev);
if (err)
goto err_out_free;

spin_lock_irq(&bp->lock);
goto out;

b44_init_rings(bp);
b44_init_hw(bp);
Expand All @@ -1403,7 +1397,13 @@ static int b44_open(struct net_device *dev)
netif_carrier_off(dev);
b44_check_phy(bp);

spin_unlock_irq(&bp->lock);
err = request_irq(dev->irq, b44_interrupt, SA_SHIRQ, dev->name, dev);
if (unlikely(err < 0)) {
b44_chip_reset(bp);
b44_free_rings(bp);
b44_free_consistent(bp);
goto out;
}

init_timer(&bp->timer);
bp->timer.expires = jiffies + HZ;
Expand All @@ -1412,11 +1412,7 @@ static int b44_open(struct net_device *dev)
add_timer(&bp->timer);

b44_enable_ints(bp);

return 0;

err_out_free:
b44_free_consistent(bp);
out:
return err;
}

Expand Down

0 comments on commit 8b9e292

Please sign in to comment.