diff options
Diffstat (limited to 'drivers/acpi/acpi_memhotplug.c')
-rw-r--r-- | drivers/acpi/acpi_memhotplug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c index 327ab4459558..15ea22fc1f5e 100644 --- a/drivers/acpi/acpi_memhotplug.c +++ b/drivers/acpi/acpi_memhotplug.c | |||
@@ -167,7 +167,7 @@ acpi_memory_get_device(acpi_handle handle, | |||
167 | * Now add the notified device. This creates the acpi_device | 167 | * Now add the notified device. This creates the acpi_device |
168 | * and invokes .add function | 168 | * and invokes .add function |
169 | */ | 169 | */ |
170 | result = acpi_bus_add(handle); | 170 | result = acpi_bus_scan(handle); |
171 | if (result) { | 171 | if (result) { |
172 | acpi_handle_warn(handle, "Cannot add acpi bus\n"); | 172 | acpi_handle_warn(handle, "Cannot add acpi bus\n"); |
173 | return -EINVAL; | 173 | return -EINVAL; |
@@ -361,7 +361,7 @@ static void acpi_memory_device_notify(acpi_handle handle, u32 event, void *data) | |||
361 | break; | 361 | break; |
362 | } | 362 | } |
363 | 363 | ||
364 | ej_event->handle = handle; | 364 | ej_event->device = device; |
365 | ej_event->event = ACPI_NOTIFY_EJECT_REQUEST; | 365 | ej_event->event = ACPI_NOTIFY_EJECT_REQUEST; |
366 | acpi_os_hotplug_execute(acpi_bus_hot_remove_device, | 366 | acpi_os_hotplug_execute(acpi_bus_hot_remove_device, |
367 | (void *)ej_event); | 367 | (void *)ej_event); |