powerpc/boot: Rework of_claim() to make it 64bit friendly
This patch fixes 64bit compile warnings and updates the wrapper code to converge the kernel code in prom_init. Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:

committed by
Benjamin Herrenschmidt

parent
9cc36bb0ac
commit
034e55e6c2
@@ -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)
|
||||
|
Reference in New Issue
Block a user