diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2014-03-22 19:24:45 -0400 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2014-04-01 17:35:53 -0400 |
commit | 6232791833785ae591b211609f6f7c4faa7c6e55 (patch) | |
tree | b1a8805d5f884068bdb567a415816779892a3638 /arch/xtensa/kernel/setup.c | |
parent | 9d4b52df4b1242e6ba9a00db5f8d62083a56709f (diff) |
xtensa: keep sysmem banks ordered in mem_reserve
Rewrite mem_reserve so that it keeps bank order.
Also make its return code more traditional.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel/setup.c')
-rw-r--r-- | arch/xtensa/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index df2b1d6fc843..017c06aba9b2 100644 --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c | |||
@@ -462,7 +462,7 @@ void __init setup_arch(char **cmdline_p) | |||
462 | #ifdef CONFIG_BLK_DEV_INITRD | 462 | #ifdef CONFIG_BLK_DEV_INITRD |
463 | if (initrd_start < initrd_end) { | 463 | if (initrd_start < initrd_end) { |
464 | initrd_is_mapped = mem_reserve(__pa(initrd_start), | 464 | initrd_is_mapped = mem_reserve(__pa(initrd_start), |
465 | __pa(initrd_end), 0); | 465 | __pa(initrd_end), 0) == 0; |
466 | initrd_below_start_ok = 1; | 466 | initrd_below_start_ok = 1; |
467 | } else { | 467 | } else { |
468 | initrd_start = 0; | 468 | initrd_start = 0; |