diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/sgi-ip27/ip27-memory.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips/sgi-ip27/ip27-memory.c b/arch/mips/sgi-ip27/ip27-memory.c index 0a44a98d7adc..a160d04f7dbe 100644 --- a/arch/mips/sgi-ip27/ip27-memory.c +++ b/arch/mips/sgi-ip27/ip27-memory.c | |||
@@ -549,9 +549,8 @@ void __init mem_init(void) | |||
549 | */ | 549 | */ |
550 | numslots = node_getlastslot(node); | 550 | numslots = node_getlastslot(node); |
551 | for (slot = 1; slot <= numslots; slot++) { | 551 | for (slot = 1; slot <= numslots; slot++) { |
552 | p = NODE_DATA(node)->node_mem_map + | 552 | p = nid_page_nr(node, slot_getbasepfn(node, slot) - |
553 | (slot_getbasepfn(node, slot) - | 553 | slot_getbasepfn(node, 0)); |
554 | slot_getbasepfn(node, 0)); | ||
555 | 554 | ||
556 | /* | 555 | /* |
557 | * Free valid memory in current slot. | 556 | * Free valid memory in current slot. |