aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpi_memhotplug.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpi_memhotplug.c')
-rw-r--r--drivers/acpi/acpi_memhotplug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c
index d4f2eb8a51ac..ea78988bc13f 100644
--- a/drivers/acpi/acpi_memhotplug.c
+++ b/drivers/acpi/acpi_memhotplug.c
@@ -206,8 +206,8 @@ static int acpi_memory_enable_device(struct acpi_memory_device *mem_device)
206 continue; 206 continue;
207 } 207 }
208 208
209 if (!result) 209 info->enabled = 1;
210 info->enabled = 1; 210
211 /* 211 /*
212 * Add num_enable even if add_memory() returns -EEXIST, so the 212 * Add num_enable even if add_memory() returns -EEXIST, so the
213 * device is bound to this driver. 213 * device is bound to this driver.