diff options
Diffstat (limited to 'drivers/acpi/acpi_memhotplug.c')
-rw-r--r-- | drivers/acpi/acpi_memhotplug.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c index 999adb5499c7..551dad712ffe 100644 --- a/drivers/acpi/acpi_memhotplug.c +++ b/drivers/acpi/acpi_memhotplug.c | |||
@@ -152,8 +152,9 @@ static int acpi_memory_check_device(struct acpi_memory_device *mem_device) | |||
152 | unsigned long long current_status; | 152 | unsigned long long current_status; |
153 | 153 | ||
154 | /* Get device present/absent information from the _STA */ | 154 | /* Get device present/absent information from the _STA */ |
155 | if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle, "_STA", | 155 | if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle, |
156 | NULL, ¤t_status))) | 156 | METHOD_NAME__STA, NULL, |
157 | ¤t_status))) | ||
157 | return -ENODEV; | 158 | return -ENODEV; |
158 | /* | 159 | /* |
159 | * Check for device status. Device should be | 160 | * Check for device status. Device should be |
@@ -281,7 +282,7 @@ static void acpi_memory_remove_memory(struct acpi_memory_device *mem_device) | |||
281 | if (!info->enabled) | 282 | if (!info->enabled) |
282 | continue; | 283 | continue; |
283 | 284 | ||
284 | if (nid < 0) | 285 | if (nid == NUMA_NO_NODE) |
285 | nid = memory_add_physaddr_to_nid(info->start_addr); | 286 | nid = memory_add_physaddr_to_nid(info->start_addr); |
286 | 287 | ||
287 | acpi_unbind_memory_blocks(info, handle); | 288 | acpi_unbind_memory_blocks(info, handle); |