Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341643
b: refs/heads/master
c: 49ed59b
h: refs/heads/master
i:
  341641: 8eafabb
  341639: 133cdf2
v: v3
  • Loading branch information
Marc Kleine-Budde committed Nov 29, 2012
1 parent 19d69f5 commit c8b55c9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 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: ab48b03ec9ae1840a1e427e2375bd0d9d554b4ed
refs/heads/master: 49ed59b72cb03116682dd6ab5c04117cc710bff3
8 changes: 0 additions & 8 deletions trunk/drivers/net/can/mscan/mscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,8 @@ static irqreturn_t mscan_isr(int irq, void *dev_id)

static int mscan_do_set_mode(struct net_device *dev, enum can_mode mode)
{
struct mscan_priv *priv = netdev_priv(dev);
int ret = 0;

if (!priv->open_time)
return -EINVAL;

switch (mode) {
case CAN_MODE_START:
ret = mscan_restart(dev);
Expand Down Expand Up @@ -590,8 +586,6 @@ static int mscan_open(struct net_device *dev)
goto exit_napi_disable;
}

priv->open_time = jiffies;

if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)
setbits8(&regs->canctl1, MSCAN_LISTEN);
else
Expand All @@ -606,7 +600,6 @@ static int mscan_open(struct net_device *dev)
return 0;

exit_free_irq:
priv->open_time = 0;
free_irq(dev->irq, dev);
exit_napi_disable:
napi_disable(&priv->napi);
Expand All @@ -627,7 +620,6 @@ static int mscan_close(struct net_device *dev)
mscan_set_mode(dev, MSCAN_INIT_MODE);
close_candev(dev);
free_irq(dev->irq, dev);
priv->open_time = 0;

return 0;
}
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/can/mscan/mscan.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ struct tx_queue_entry {
struct mscan_priv {
struct can_priv can; /* must be the first member */
unsigned int type; /* MSCAN type variants */
long open_time;
unsigned long flags;
void __iomem *reg_base; /* ioremap'ed address to registers */
u8 shadow_statflg;
Expand Down

0 comments on commit c8b55c9

Please sign in to comment.