mm/memory_hotplug: make add_memory() take the device_hotplug_lock
[linux-2.6-block.git] / drivers / acpi / acpi_memhotplug.c
index 811148415993596a23b19e82438d7b88c1638aef..8fe0960ea572495d927ead4053c783e23a94631b 100644 (file)
@@ -228,7 +228,7 @@ static int acpi_memory_enable_device(struct acpi_memory_device *mem_device)
                if (node < 0)
                        node = memory_add_physaddr_to_nid(info->start_addr);
 
-               result = add_memory(node, info->start_addr, info->length);
+               result = __add_memory(node, info->start_addr, info->length);
 
                /*
                 * If the memory block has been used by the kernel, add_memory()