arm: fix incorrect monitor protection region in FLASH
[oweals/u-boot.git] / arch / arm / lib / bootm.c
index 2e7b2e1f33f27b472cbf30528301be67ff9733fb..77349530f02e10cc324aa43b90cf36db71f00493 100644 (file)
@@ -177,8 +177,6 @@ static int fixup_memory_node(void *blob)
 static int bootm_linux_fdt(int machid, bootm_headers_t *images)
 {
        ulong rd_len;
-       bd_t *bd = gd->bd;
-       char *s;
        void (*kernel_entry)(int zero, int dt_machid, void *dtblob);
        ulong bootmap_base = getenv_bootm_low();
        ulong of_size = images->ft_len;
@@ -329,12 +327,12 @@ void setup_revision_tag(struct tag **in_params)
 }
 #endif  /* CONFIG_REVISION_TAG */
 
-
 static void setup_end_tag (bd_t *bd)
 {
        params->hdr.tag = ATAG_NONE;
        params->hdr.size = 0;
 }
+#endif /* CONFIG_SETUP_MEMORY_TAGS || CONFIG_CMDLINE_TAG || CONFIG_INITRD_TAG */
 
 static ulong get_sp(void)
 {
@@ -343,5 +341,3 @@ static ulong get_sp(void)
        asm("mov %0, sp" : "=r"(ret) : );
        return ret;
 }
-
-#endif /* CONFIG_SETUP_MEMORY_TAGS || CONFIG_CMDLINE_TAG || CONFIG_INITRD_TAG */