mm, sparse: pass nid instead of pgdat to sparse_add_one_section()
[sfrench/cifs-2.6.git] / mm / memory_hotplug.c
index 0718cf7427b20a1f788ea900654e73ab8fd8d3a0..5f15f9c04c4afd7756c99117117b254dbe140b02 100644 (file)
@@ -253,7 +253,7 @@ static int __meminit __add_section(int nid, unsigned long phys_start_pfn,
        if (pfn_valid(phys_start_pfn))
                return -EEXIST;
 
-       ret = sparse_add_one_section(NODE_DATA(nid), phys_start_pfn, altmap);
+       ret = sparse_add_one_section(nid, phys_start_pfn, altmap);
        if (ret < 0)
                return ret;