]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/cm4008/flash.c
ARM: remove dkb board support
[karo-tx-uboot.git] / board / cm4008 / flash.c
index 251192839e73c31ffd88998f25187ac5bdb67c0c..8315a57ed9ace6bd30f375055a11d9aa812fa0e3 100644 (file)
@@ -57,7 +57,7 @@ unsigned long flash_init (void)
         */
        flash_protect (FLAG_PROTECT_SET,
                       CONFIG_SYS_FLASH_BASE,
-                      CONFIG_SYS_FLASH_BASE + _bss_start_ofs,
+                      CONFIG_SYS_FLASH_BASE + (__bss_end - __bss_start),
                       &flash_info[0]);
 
        return size;