aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethoc.c
diff options
context:
space:
mode:
authorJonas Bonn <jonas@southpole.se>2010-06-10 22:47:36 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-11 16:28:35 -0400
commitee4f56b990391f0ea333121ebc0e9fba28619b52 (patch)
treee087bf962608e04671d89fcda9933a70813aa629 /drivers/net/ethoc.c
parentf8555ad0cfb0ba6cbc8729f337341fb11c82db89 (diff)
ethoc: write number of TX buffers in init_ring
This moves the write of the TX_BD_NUM to init_ring together with the rest of the code setting up the transmission buffers. Signed-off-by: Jonas Bonn <jonas@southpole.se> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethoc.c')
-rw-r--r--drivers/net/ethoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c
index 5904ad284a01..afeb9938ff85 100644
--- a/drivers/net/ethoc.c
+++ b/drivers/net/ethoc.c
@@ -298,6 +298,8 @@ static int ethoc_init_ring(struct ethoc *dev, void* mem_start)
298 dev->dty_tx = 0; 298 dev->dty_tx = 0;
299 dev->cur_rx = 0; 299 dev->cur_rx = 0;
300 300
301 ethoc_write(dev, TX_BD_NUM, dev->num_tx);
302
301 /* setup transmission buffers */ 303 /* setup transmission buffers */
302 bd.addr = mem_start; 304 bd.addr = mem_start;
303 bd.stat = TX_BD_IRQ | TX_BD_CRC; 305 bd.stat = TX_BD_IRQ | TX_BD_CRC;
@@ -676,8 +678,6 @@ static int ethoc_open(struct net_device *dev)
676 if (ret) 678 if (ret)
677 return ret; 679 return ret;
678 680
679 ethoc_write(priv, TX_BD_NUM, priv->num_tx);
680
681 ethoc_init_ring(priv, (void*)dev->mem_start); 681 ethoc_init_ring(priv, (void*)dev->mem_start);
682 ethoc_reset(priv); 682 ethoc_reset(priv);
683 683