[PATCH] of_platform_make_bus_id(): make `magic` int
Geert Uytterhoeven
Geert.Uytterhoeven at sonycom.com
Fri Dec 8 02:49:18 EST 2006
of_platform_make_bus_id(): Kill a compiler warning which is a real
bug on PPC64 by changing `magic' to `int'.
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven at sonycom.com>
--- ps3-linux-src.orig/arch/powerpc/kernel/of_platform.c 2006-12-05 11:16:13.000000000 +0100
+++ ps3-linux-src/arch/powerpc/kernel/of_platform.c 2006-12-07 16:47:21.000000000 +0100
@@ -169,7 +169,7 @@ static void of_platform_make_bus_id(stru
char *name = dev->dev.bus_id;
const u32 *reg;
u64 addr;
- long magic;
+ int magic;
/*
* If it's a DCR based device, use 'd' for native DCRs
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven at sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium
More information about the Linuxppc-dev
mailing list