]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/boot/of.c
Merge remote-tracking branches 'asoc/fix/fsl-dma', 'asoc/fix/fsl-spdif', 'asoc/fix...
[karo-tx-linux.git] / arch / powerpc / boot / of.c
index 62e2f43ec1df1144d3a790e1f3cf3e3263fdca47..7ca910cb2fc64f0ad8fa85ed2f5b056495773324 100644 (file)
@@ -40,8 +40,8 @@ static void *of_try_claim(unsigned long size)
 #ifdef DEBUG
                printf("    trying: 0x%08lx\n\r", claim_base);
 #endif
-               addr = (unsigned long)of_claim(claim_base, size, 0);
-               if ((void *)addr != (void *)-1)
+               addr = (unsigned long) of_claim(claim_base, size, 0);
+               if (addr != PROM_ERROR)
                        break;
        }
        if (addr == 0)