]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/net/xilinx_emaclite.c
arm: mx6: add support for i.MX6ULL
[karo-tx-uboot.git] / drivers / net / xilinx_emaclite.c
index 2a5cc445530f9f58fc29abd03858d60f1bd6cb57..564205df83d39532f378bd0d5f32ad4e2c632b04 100644 (file)
@@ -322,7 +322,7 @@ static int emaclite_recv(struct eth_device *dev)
        out_be32 (baseaddress + XEL_RSR_OFFSET, reg);
 
        debug("Packet receive from 0x%x, length %dB\n", baseaddress, length);
-       NetReceive((uchar *) etherrxbuff, length);
+       net_process_received_packet((uchar *)etherrxbuff, length);
        return length;
 
 }
@@ -361,7 +361,7 @@ int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr,
        return 1;
 }
 
-#ifdef CONFIG_OF_CONTROL
+#if CONFIG_IS_ENABLED(OF_CONTROL)
 int xilinx_emaclite_of_init(const void *blob)
 {
        int offset = 0;