Skip to content
Snippets Groups Projects
Commit 88685b5f authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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: default avatarWolfgang Denk <wd@denx.de>
parent 26e42cbd
No related branches found
No related tags found
No related merge requests found
......@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment