Signed-off-by: Jagan <jaganna@xilinx.com>
*/
#include <common.h>
+#include <netdev.h>
#include "ps7_init_hw.h"
#include "xparameters.h"
}
#ifdef CONFIG_CMD_NET
-extern int Xgmac_register(bd_t *bis);
-
int board_eth_init(bd_t *bis)
{
- Xgmac_register(bis);
-
- return 0;
+ return Xgmac_register(bis);
}
#endif
int sh_eth_initialize(bd_t *bis);
int dm9000_initialize(bd_t *bis);
int fecmxc_initialize(bd_t *bis);
+int Xgmac_register(bd_t *bis);
/* Boards with PCI network controllers can call this from their board_eth_init()
* function to initialize whatever's on board.