Merge branch 'Makefile-next' of git://git.denx.de/u-boot-arm
[oweals/u-boot.git] / board / atmel / at91rm9200dk / flash.c
index 0513d61d73f2df9d211c39bbf0e2b481e85aef57..ef8d9a8309cd2662db9ea9388c854c7363b69472 100644 (file)
@@ -221,8 +221,8 @@ ulong flash_init (void)
 
        /* Protect environment variables */
        flash_protect (FLAG_PROTECT_SET,
-                      CFG_ENV_ADDR,
-                      CFG_ENV_ADDR + CFG_ENV_SIZE - 1, &flash_info[0]);
+                      CONFIG_ENV_ADDR,
+                      CONFIG_ENV_ADDR + CONFIG_ENV_SIZE - 1, &flash_info[0]);
 
        /* Protect U-Boot gzipped image */
        flash_protect (FLAG_PROTECT_SET,