summaryrefslogtreecommitdiff
path: root/drivers/net/can/sja1000/sja1000.c
diff options
context:
space:
mode:
authorWolfgang Grandegger <wg@grandegger.com>2009-05-30 11:55:48 +0400
committerDavid S. Miller <davem@davemloft.net>2009-06-01 13:53:33 +0400
commit128ced8f9d59bb3e36fbb4df87bd9d881f0a4463 (patch)
tree38906e40b99eac8acd9e243701001ab8dc2e9b7b /drivers/net/can/sja1000/sja1000.c
parent86d15cd83363a9787039895cb1a1b6be50f82ad3 (diff)
downloadlinux-128ced8f9d59bb3e36fbb4df87bd9d881f0a4463.tar.xz
can: some fixes and cleanups to the initial device driver interface
This patch fixes a few errors sneaked into the initial version of the device driver interface. Signed-off-by: Wolfgang Grandegger <wg@grandegger.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can/sja1000/sja1000.c')
-rw-r--r--drivers/net/can/sja1000/sja1000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/sja1000/sja1000.c b/drivers/net/can/sja1000/sja1000.c
index 05b38dde648e..b689964f182c 100644
--- a/drivers/net/can/sja1000/sja1000.c
+++ b/drivers/net/can/sja1000/sja1000.c
@@ -532,8 +532,8 @@ static int sja1000_open(struct net_device *dev)
err = request_irq(dev->irq, &sja1000_interrupt, priv->irq_flags,
dev->name, (void *)dev);
if (err) {
- return -EAGAIN;
close_candev(dev);
+ return -EAGAIN;
}
}