X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=board%2Fwestel%2Famx860%2Fflash.c;h=12a1335b757ad1b052a76c3dd3e271e965124e37;hp=28238c1ca00a78262fdf184cfe6f342e079cfb96;hb=3b57fe0a70b903f4db66c558bb9828bc58acf06b;hpb=f07771cc288eb86cad8f8a5c1aa593caf2ba26f8 diff --git a/board/westel/amx860/flash.c b/board/westel/amx860/flash.c index 28238c1ca0..12a1335b75 100644 --- a/board/westel/amx860/flash.c +++ b/board/westel/amx860/flash.c @@ -130,7 +130,7 @@ unsigned long flash_init (void) /* monitor protection ON by default */ flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE, - CFG_MONITOR_BASE+CFG_MONITOR_LEN-1, + CFG_MONITOR_BASE+monitor_flash_len-1, &flash_info[0]); #endif @@ -162,7 +162,7 @@ unsigned long flash_init (void) /* monitor protection ON by default */ flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE, - CFG_MONITOR_BASE+CFG_MONITOR_LEN-1, + CFG_MONITOR_BASE+monitor_flash_len-1, &flash_info[1]); # endif