From: Daniel Hellstrom Date: Fri, 22 Oct 2010 09:36:39 +0000 (+0200) Subject: GRETH: fixed 2 decriptor table typos X-Git-Tag: v2010.12-rc2~47^2^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ed52d121d34078fbf13bd5ea2ed52800a7da2051;p=oweals%2Fu-boot.git GRETH: fixed 2 decriptor table typos Signed-off-by: Daniel Hellstrom --- diff --git a/drivers/net/greth.c b/drivers/net/greth.c index f081855f26..0566e68590 100644 --- a/drivers/net/greth.c +++ b/drivers/net/greth.c @@ -168,7 +168,7 @@ int greth_init(struct eth_device *dev, bd_t * bis) greth->rxbd_base = (greth_bd *) memalign(0x1000, GRETH_RXBD_CNT * sizeof(greth_bd)); greth->txbd_base = (greth_bd *) - memalign(0x1000, GRETH_RXBD_CNT * sizeof(greth_bd)); + memalign(0x1000, GRETH_TXBD_CNT * sizeof(greth_bd)); /* allocate buffers to all descriptors */ greth->rxbuf_base = @@ -200,7 +200,7 @@ int greth_init(struct eth_device *dev, bd_t * bis) for (i = 0; i < GRETH_TXBD_CNT; i++) { greth->txbd_base[i].addr = 0; /* enable desciptor & set wrap bit if last descriptor */ - if (i >= (GRETH_RXBD_CNT - 1)) { + if (i >= (GRETH_TXBD_CNT - 1)) { greth->txbd_base[i].stat = GRETH_BD_WR; } else { greth->txbd_base[i].stat = 0;