diff options
author | Michal Simek <monstr@monstr.eu> | 2009-05-21 10:33:07 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-05-21 10:39:58 -0400 |
commit | b9479e666563d5c28eb861d2a8f6334666025384 (patch) | |
tree | 781addb6b3f8ad095610eaf32d8033748f716ecc /arch/microblaze | |
parent | e93b55bfb3ead1cb4d9df7a5e0686318cfa8690c (diff) |
microblaze: Fix cast warning for __va in prom.c
__va expect 32bit value but of_read_ulong(of_read_number)
returns 64bit value
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/kernel/prom.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/microblaze/kernel/prom.c b/arch/microblaze/kernel/prom.c index 003d37360623..c005cc6f1aaf 100644 --- a/arch/microblaze/kernel/prom.c +++ b/arch/microblaze/kernel/prom.c | |||
@@ -509,12 +509,13 @@ static void __init early_init_dt_check_for_initrd(unsigned long node) | |||
509 | 509 | ||
510 | prop = of_get_flat_dt_prop(node, "linux,initrd-start", &l); | 510 | prop = of_get_flat_dt_prop(node, "linux,initrd-start", &l); |
511 | if (prop) { | 511 | if (prop) { |
512 | initrd_start = (unsigned long)__va(of_read_ulong(prop, l/4)); | 512 | initrd_start = (unsigned long) |
513 | __va((u32)of_read_ulong(prop, l/4)); | ||
513 | 514 | ||
514 | prop = of_get_flat_dt_prop(node, "linux,initrd-end", &l); | 515 | prop = of_get_flat_dt_prop(node, "linux,initrd-end", &l); |
515 | if (prop) { | 516 | if (prop) { |
516 | initrd_end = (unsigned long) | 517 | initrd_end = (unsigned long) |
517 | __va(of_read_ulong(prop, l/4)); | 518 | __va((u32)of_read_ulong(prop, 1/4)); |
518 | initrd_below_start_ok = 1; | 519 | initrd_below_start_ok = 1; |
519 | } else { | 520 | } else { |
520 | initrd_start = 0; | 521 | initrd_start = 0; |