X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fnet%2Fftmac110.c;h=4f17015bc593edece051b70e6a508e7812740f32;hb=29d8c814a593d9d1b7a7361b6961d681cff1e188;hp=98c4f09629bdcd4fc5380822ededcb4a9152e1bd;hpb=cc49da249cf2f380d2fed5571fad65ce6494fc95;p=u-boot diff --git a/drivers/net/ftmac110.c b/drivers/net/ftmac110.c index 98c4f09629..4f17015bc5 100644 --- a/drivers/net/ftmac110.c +++ b/drivers/net/ftmac110.c @@ -347,7 +347,7 @@ static int ftmac110_recv(struct eth_device *dev) printf("ftmac110: rx error\n"); } else { dma_map_single(buf, len, DMA_FROM_DEVICE); - NetReceive(buf, len); + net_process_received_packet(buf, len); rlen += len; } @@ -424,9 +424,6 @@ int ftmac110_initialize(bd_t *bis) dev->send = ftmac110_send; dev->recv = ftmac110_recv; - if (!eth_getenv_enetaddr_by_index("eth", card_nr, dev->enetaddr)) - eth_random_addr(dev->enetaddr); - /* allocate tx descriptors (it must be 16 bytes aligned) */ chip->txd = dma_alloc_coherent( sizeof(struct ftmac110_desc) * CFG_TXDES_NUM, &chip->txd_dma);