]> git.sur5r.net Git - u-boot/commitdiff
VCMA9: fix compile errors
authorWolfgang Denk <wd@denx.de>
Sat, 28 Mar 2009 23:58:16 +0000 (00:58 +0100)
committerWolfgang Denk <wd@denx.de>
Sat, 28 Mar 2009 23:58:16 +0000 (00:58 +0100)
Fix these:
cmd_vcma9.c:82: warning: implicit declaration of function 'eth_getenv_enetaddr'
cmd_vcma9.c:89: error: 'enetaddr' undeclared (first use in this function)

Signed-off-by: Wolfgang Denk <wd@denx.de>
board/mpl/vcma9/cmd_vcma9.c

index 7d2aa3cceeb68222f8f2f5c142e0b30b015575a1..cbe7fe256e4fb5413a7d255dce0a960077338eba 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <net.h>
 #include "vcma9.h"
 #include "../common/common_util.h"
 
@@ -86,8 +87,8 @@ int do_vcma9(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                                csum = cs8900_chksum(data);
                                addr++;
                                for (i = 0; i < 6; i+=2) {
-                                       data = enetaddr[i+1] << 8 |
-                                              enetaddr[i];
+                                       data = ethaddr[i+1] << 8 |
+                                              ethaddr[i];
                                        cs8900_e2prom_write(addr, data);
                                        csum += cs8900_chksum(data);
                                        addr++;