Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203476
b: refs/heads/master
c: dbe000e
h: refs/heads/master
v: v3
  • Loading branch information
Kulikov Vasiliy authored and David S. Miller committed Jul 13, 2010
1 parent 1f76010 commit 7006912
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 546e3abde391ef01ef4690e941611654343ea0bf
refs/heads/master: dbe000ed3f3033e8e6321d79023c827faf649c4d
12 changes: 10 additions & 2 deletions trunk/drivers/net/xtsonic.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,20 @@ static unsigned short known_revisions[] =

static int xtsonic_open(struct net_device *dev)
{
if (request_irq(dev->irq,sonic_interrupt,IRQF_DISABLED,"sonic",dev)) {
int retval;

retval = request_irq(dev->irq, sonic_interrupt, IRQF_DISABLED,
"sonic", dev);
if (retval) {
printk(KERN_ERR "%s: unable to get IRQ %d.\n",
dev->name, dev->irq);
return -EAGAIN;
}
return sonic_open(dev);

retval = sonic_open(dev);
if (retval)
free_irq(dev->irq, dev);
return retval;
}

static int xtsonic_close(struct net_device *dev)
Expand Down

0 comments on commit 7006912

Please sign in to comment.