]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: NET: Moved Xgmac_register decleration into netdev header
authorJagan <jaganna@xilinx.com>
Thu, 31 May 2012 09:54:12 +0000 (15:24 +0530)
committerJagan <jaganna@xilinx.com>
Thu, 31 May 2012 09:54:12 +0000 (15:24 +0530)
Signed-off-by: Jagan <jaganna@xilinx.com>
board/xilinx/zynq_common/board.c
include/netdev.h

index 2cbd2fe2f90928aacdccedc5d60c21bb0dfb58a5..2acb0c2d4a78dc29fee017a07001b5e6c8e8d829 100644 (file)
@@ -3,6 +3,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 #include "ps7_init_hw.h"
 #include "xparameters.h"
 
@@ -656,13 +657,9 @@ int board_late_init (void)
 }
 
 #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
 
index 6f0a971b7e2892cdff18a57034ba1d5920c074e9..303af0334139ed071700c08c90736236c637ecee 100644 (file)
@@ -94,6 +94,7 @@ int xilinx_emaclite_initialize (bd_t *bis, int base_addr);
 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.