X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Flwmon%2Fflash.c;h=127738a4bb5027e508dcc7a908dcce82f9bd4c8d;hb=3b57fe0a70b903f4db66c558bb9828bc58acf06b;hp=3d2a00fd3e070aeb9f6dfe40a7ec31f30f3cb023;hpb=f07771cc288eb86cad8f8a5c1aa593caf2ba26f8;p=u-boot diff --git a/board/lwmon/flash.c b/board/lwmon/flash.c index 3d2a00fd3e..127738a4bb 100644 --- a/board/lwmon/flash.c +++ b/board/lwmon/flash.c @@ -123,7 +123,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 @@ -156,7 +156,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