]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/boot/of.c
[POWERPC] Fix zImage decompress location
[linux-2.6-omap-h63xx.git] / arch / powerpc / boot / of.c
index fd99f789a37bbdd32a1507cca72191ef5e1f37af..3a71845afc6c584670075fbc9a152febcf7819de 100644 (file)
@@ -176,12 +176,9 @@ static void *claim(unsigned long virt, unsigned long size, unsigned long align)
 static void *of_try_claim(u32 size)
 {
        unsigned long addr = 0;
-       static u8 first_time = 1;
 
-       if (first_time) {
+       if (claim_base == 0)
                claim_base = _ALIGN_UP((unsigned long)_end, ONE_MB);
-               first_time = 0;
-       }
 
        for(; claim_base < RAM_END; claim_base += ONE_MB) {
 #ifdef DEBUG