Cleanup: fix "expected specifier-qualifier-list before 'phys_size_t'" errors
[oweals/u-boot.git] / board / xilinx / xilinx_enet / emac_adapter.c
index 5c492ebbc0ec484f78b69d083babff65aa9c1dd1..d3403038e65e84a1375e68eed09f6ab109d4ea3f 100644 (file)
 *
 ******************************************************************************/
 
+#include <config.h>
 #include <common.h>
 #include <net.h>
-#include <configs/ml300.h>
-#include "xparameters.h"
 #include "xemac.h"
 
 #if defined(XPAR_EMAC_0_DEVICE_ID)
@@ -148,7 +147,11 @@ eth_rx(void)
        RecvFrameLength = PKTSIZE;
        Result = XEmac_PollRecv(&Emac, (u8 *) etherrxbuff, &RecvFrameLength);
        if (Result == XST_SUCCESS) {
+#ifndef CONFIG_EMACLITE
                NetReceive((uchar *)etherrxbuff, RecvFrameLength);
+#else
+               NetReceive(etherrxbuff, RecvFrameLength);
+#endif
                return (1);
        } else {
                return (0);