Skip to content

Commit

Permalink
[POWERPC] of_platform_make_bus_id(): make `magic' int
Browse files Browse the repository at this point in the history
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@sonycom.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Geert Uytterhoeven authored and Paul Mackerras committed Dec 8, 2006
1 parent 9e254c4 commit 30d3684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/of_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ static void of_platform_make_bus_id(struct of_device *dev)
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
Expand Down

0 comments on commit 30d3684

Please sign in to comment.