X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=board%2Ftqm8260%2Fflash.c;h=056fe810b38a165a041c0028d5a8628304ef0325;hp=dd7a4cc838ebf15b9e22447a4aa141f49e708652;hb=3b57fe0a70b903f4db66c558bb9828bc58acf06b;hpb=f07771cc288eb86cad8f8a5c1aa593caf2ba26f8 diff --git a/board/tqm8260/flash.c b/board/tqm8260/flash.c index dd7a4cc838..056fe810b3 100644 --- a/board/tqm8260/flash.c +++ b/board/tqm8260/flash.c @@ -204,7 +204,7 @@ unsigned long flash_init (void) #if CFG_MONITOR_BASE >= CFG_FLASH0_BASE flash_protect (FLAG_PROTECT_SET, CFG_MONITOR_BASE, - CFG_MONITOR_BASE + CFG_MONITOR_LEN - 1, &flash_info[0]); + CFG_MONITOR_BASE + monitor_flash_len - 1, &flash_info[0]); #endif #if (CFG_ENV_IS_IN_FLASH == 1) && defined(CFG_ENV_ADDR)