Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314658
b: refs/heads/master
c: c265026
h: refs/heads/master
v: v3
  • Loading branch information
Yoshihiro Shimoda authored and David S. Miller committed Jun 27, 2012
1 parent 11b95f2 commit 4bc49a2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 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: ebe6e21d233bdc4f6ae5f5f649d13beb4ed7a763
refs/heads/master: c26502680e59af556211fc3fd3ae0f2aa5d98440
22 changes: 0 additions & 22 deletions trunk/drivers/net/ethernet/renesas/sh_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,14 +1339,6 @@ static irqreturn_t sh_eth_interrupt(int irq, void *netdev)
return ret;
}

static void sh_eth_timer(unsigned long data)
{
struct net_device *ndev = (struct net_device *)data;
struct sh_eth_private *mdp = netdev_priv(ndev);

mod_timer(&mdp->timer, jiffies + (10 * HZ));
}

/* PHY state control function */
static void sh_eth_adjust_link(struct net_device *ndev)
{
Expand Down Expand Up @@ -1594,11 +1586,6 @@ static int sh_eth_open(struct net_device *ndev)
if (ret)
goto out_free_irq;

/* Set the timer to check for link beat. */
init_timer(&mdp->timer);
mdp->timer.expires = (jiffies + (24 * HZ)) / 10;/* 2.4 sec. */
setup_timer(&mdp->timer, sh_eth_timer, (unsigned long)ndev);

return ret;

out_free_irq:
Expand All @@ -1623,9 +1610,6 @@ static void sh_eth_tx_timeout(struct net_device *ndev)
/* tx_errors count up */
ndev->stats.tx_errors++;

/* timer off */
del_timer_sync(&mdp->timer);

/* Free all the skbuffs in the Rx queue. */
for (i = 0; i < RX_RING_SIZE; i++) {
rxdesc = &mdp->rx_ring[i];
Expand All @@ -1643,10 +1627,6 @@ static void sh_eth_tx_timeout(struct net_device *ndev)

/* device init */
sh_eth_dev_init(ndev);

/* timer on */
mdp->timer.expires = (jiffies + (24 * HZ)) / 10;/* 2.4 sec. */
add_timer(&mdp->timer);
}

/* Packet transmit function */
Expand Down Expand Up @@ -1719,8 +1699,6 @@ static int sh_eth_close(struct net_device *ndev)

free_irq(ndev->irq, ndev);

del_timer_sync(&mdp->timer);

/* Free all the skbuffs in the Rx queue. */
sh_eth_ring_free(ndev);

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/ethernet/renesas/sh_eth.h
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,6 @@ struct sh_eth_private {
struct sh_eth_txdesc *tx_ring;
struct sk_buff **rx_skbuff;
struct sk_buff **tx_skbuff;
struct timer_list timer;
spinlock_t lock;
u32 cur_rx, dirty_rx; /* Producer/consumer ring indices */
u32 cur_tx, dirty_tx;
Expand Down

0 comments on commit 4bc49a2

Please sign in to comment.