X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Fwestel%2Famx860%2Fflash.c;h=12a1335b757ad1b052a76c3dd3e271e965124e37;hb=4b7a6dd89633d60dc4b58476d5ce48247f82a3ca;hp=28238c1ca00a78262fdf184cfe6f342e079cfb96;hpb=affae2bff825c1a8d2cfeaf7b270188d251d39d2;p=oweals%2Fu-boot.git 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