Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203450
b: refs/heads/master
c: a607072
h: refs/heads/master
v: v3
  • Loading branch information
Kulikov Vasiliy authored and David S. Miller committed Jul 11, 2010
1 parent 874ec2d commit 1508174
Show file tree
Hide file tree
Showing 2 changed files with 23 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: f163530407280485034c836d908b49787a8189bc
refs/heads/master: a607072b8685c18fde9c34aee8402eb6190b8518
30 changes: 22 additions & 8 deletions trunk/drivers/net/82596.c
Original file line number Diff line number Diff line change
Expand Up @@ -1015,24 +1015,35 @@ static int i596_open(struct net_device *dev)
}
#ifdef ENABLE_MVME16x_NET
if (MACH_IS_MVME16x) {
if (request_irq(0x56, i596_error, 0, "i82596_error", dev))
return -EAGAIN;
if (request_irq(0x56, i596_error, 0, "i82596_error", dev)) {
res = -EAGAIN;
goto err_irq_dev;
}
}
#endif
res = init_rx_bufs(dev);
if (res) {
free_irq(dev->irq, dev);
return res;
}
if (res)
goto err_irq_56;

netif_start_queue(dev);

/* Initialize the 82596 memory */
if (init_i596_mem(dev)) {
res = -EAGAIN;
free_irq(dev->irq, dev);
goto err_queue;
}

return 0;

err_queue:
netif_stop_queue(dev);
remove_rx_bufs(dev);
err_irq_56:
#ifdef ENABLE_MVME16x_NET
free_irq(0x56, dev);
#endif
err_irq_dev:
free_irq(dev->irq, dev);

return res;
}

Expand Down Expand Up @@ -1498,6 +1509,9 @@ static int i596_close(struct net_device *dev)
}
#endif

#ifdef ENABLE_MVME16x_NET
free_irq(0x56, dev);
#endif
free_irq(dev->irq, dev);
remove_rx_bufs(dev);

Expand Down

0 comments on commit 1508174

Please sign in to comment.