diff options
author | Yinghai Lu <yinghai@kernel.org> | 2013-01-11 17:40:41 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-15 07:24:59 -0500 |
commit | 5993c4670ea2453ef5abb45b312f150e994e6eb9 (patch) | |
tree | 5ff0ec317a707caa905dd33d46e66e19b933384d /drivers/acpi/acpi_memhotplug.c | |
parent | 05404d8f7b5c831e1a2c24bb782f0fe8ea02354c (diff) |
ACPI: update ej_event interface to take acpi_device
Should use acpi_device pointer directly instead of use handle and
get the device pointer again later.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpi_memhotplug.c')
-rw-r--r-- | drivers/acpi/acpi_memhotplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c index 327ab4459558..eaddb7a89c70 100644 --- a/drivers/acpi/acpi_memhotplug.c +++ b/drivers/acpi/acpi_memhotplug.c | |||
@@ -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); |