summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-03-29 00:58:16 +0100
committerWolfgang Denk <wd@denx.de>2009-03-29 00:58:16 +0100
commit88685b5f62274167ad2ba8a58e108d89ff71955b (patch)
tree6eb8ffe30460f500e5593c57773f3315fbe6345b
parent26e42cbd786241fec370a0b92ad591f4e9cc423b (diff)
downloadu-boot-imx-88685b5f62274167ad2ba8a58e108d89ff71955b.zip
u-boot-imx-88685b5f62274167ad2ba8a58e108d89ff71955b.tar.gz
u-boot-imx-88685b5f62274167ad2ba8a58e108d89ff71955b.tar.bz2
VCMA9: fix compile errors
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>
-rw-r--r--board/mpl/vcma9/cmd_vcma9.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/mpl/vcma9/cmd_vcma9.c b/board/mpl/vcma9/cmd_vcma9.c
index 7d2aa3c..cbe7fe2 100644
--- a/board/mpl/vcma9/cmd_vcma9.c
+++ b/board/mpl/vcma9/cmd_vcma9.c
@@ -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++;