]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/sandburst/common/sb_common.c
boards: move board_get_enetaddr() into board-specific init
[people/ms/u-boot.git] / board / sandburst / common / sb_common.c
index f6ea16f0a56ba0b711294a142ec5cf690dd2c1c8..b8160c8427d57d0cbddedfba7ba77da109518d5c 100644 (file)
@@ -394,9 +394,8 @@ int is_pci_host(struct pci_controller *hose)
  *  mgmt mac address.
  *
  ************************************************************************/
-static int macaddr_idx = 0;
 
-void board_get_enetaddr (uchar * enet)
+void board_get_enetaddr(int macaddr_idx, uchar *enet)
 {
        int i;
        unsigned short tmp;
@@ -419,7 +418,6 @@ void board_get_enetaddr (uchar * enet)
                tmp += 31;
                memcpy(&enet[4], &tmp, 2);
 
-               macaddr_idx++;
        } else {
                enet[0] = 0x02;
                enet[1] = 0x00;