diff options
Diffstat (limited to 'board/pm520')
-rw-r--r-- | board/pm520/flash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/pm520/flash.c b/board/pm520/flash.c index 4301b8c..9ec843e 100644 --- a/board/pm520/flash.c +++ b/board/pm520/flash.c @@ -119,10 +119,10 @@ unsigned long flash_init (void) #endif #endif -#ifdef CFG_ENV_IS_IN_FLASH +#ifdef CONFIG_ENV_IS_IN_FLASH 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] ); #endif flash_afterinit(flash_info[0].start[0], flash_info[0].size); |