Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171595
b: refs/heads/master
c: 323907a
h: refs/heads/master
i:
  171593: 8fc8836
  171591: 7db2dfb
v: v3
  • Loading branch information
Wolfram Sang authored and David S. Miller committed Nov 17, 2009
1 parent 9987291 commit cc29d6c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 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: 74ff60b29ec602322178d32cb2a82b24ddb884fc
refs/heads/master: 323907ac72a223ed4e4d67ce8e3589900023a0c8
16 changes: 11 additions & 5 deletions trunk/drivers/net/can/mscan/mscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,8 @@ static int mscan_open(struct net_device *dev)

ret = request_irq(dev->irq, mscan_isr, 0, dev->name, dev);
if (ret < 0) {
napi_disable(&priv->napi);
printk(KERN_ERR "%s - failed to attach interrupt\n",
dev->name);
return ret;
dev_err(dev->dev.parent, "failed to attach interrupt\n");
goto exit_napi_disable;
}

priv->open_time = jiffies;
Expand All @@ -554,11 +552,19 @@ static int mscan_open(struct net_device *dev)

ret = mscan_start(dev);
if (ret)
return ret;
goto exit_free_irq;

netif_start_queue(dev);

return 0;

exit_free_irq:
priv->open_time = 0;
free_irq(dev->irq, dev);
exit_napi_disable:
napi_disable(&priv->napi);
close_candev(dev);
return ret;
}

static int mscan_close(struct net_device *dev)
Expand Down

0 comments on commit cc29d6c

Please sign in to comment.