ppc4xx: Add missing APC405 to MAKEALL
[oweals/u-boot.git] / board / hymod / env.c
index f9e14213ceb91b4826d3df3ec5ffd2fb6fcb983f..c0e2cd5d6816d86ec01c9f0c5ec345a235e21291 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <common.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /* imports from fetch.c */
 extern int fetch_and_parse (char *, ulong, int (*)(uchar *, uchar *));
 
@@ -32,10 +34,8 @@ static char *def_global_env_path = "/hymod/global_env";
 static int
 env_callback (uchar *name, uchar *value)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        hymod_conf_t *cp = &gd->bd->bi_hymod_conf;
-       char ov[CFG_CBSIZE], nv[CFG_CBSIZE], *p, *q, *nn, c, *curver, *newver;
+       char ov[CONFIG_SYS_CBSIZE], nv[CONFIG_SYS_CBSIZE], *p, *q, *nn, c, *curver, *newver;
        int override = 1, append = 0, remove = 0, nnl, ovl, nvl;
 
        nn = (char *)name;
@@ -205,7 +205,7 @@ hymod_check_env (void)
        if ((path = getenv ("global_env_path")) == NULL || *path == '\0')
                path = def_global_env_path;
 
-       if (fetch_and_parse (path, CFG_LOAD_ADDR, env_callback) == 0) {
+       if (fetch_and_parse (path, CONFIG_SYS_LOAD_ADDR, env_callback) == 0) {
                puts ("*** Fetch of global environment failed!\n");
                return;
        }