]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/net/ftmac110.c
karo: tx6: don't perform DQS gating calibration
[karo-tx-uboot.git] / drivers / net / ftmac110.c
index 98c4f09629bdcd4fc5380822ededcb4a9152e1bd..4f17015bc593edece051b70e6a508e7812740f32 100644 (file)
@@ -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);