diff options
Diffstat (limited to 'drivers/acpi/acpi_memhotplug.c')
-rw-r--r-- | drivers/acpi/acpi_memhotplug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c index 6f5e395c78af..c5622244a219 100644 --- a/drivers/acpi/acpi_memhotplug.c +++ b/drivers/acpi/acpi_memhotplug.c | |||
@@ -81,6 +81,7 @@ struct acpi_memory_info { | |||
81 | 81 | ||
82 | struct acpi_memory_device { | 82 | struct acpi_memory_device { |
83 | acpi_handle handle; | 83 | acpi_handle handle; |
84 | struct acpi_device * device; | ||
84 | unsigned int state; /* State of the memory device */ | 85 | unsigned int state; /* State of the memory device */ |
85 | struct list_head res_list; | 86 | struct list_head res_list; |
86 | }; | 87 | }; |
@@ -399,6 +400,7 @@ static int acpi_memory_device_add(struct acpi_device *device) | |||
399 | 400 | ||
400 | INIT_LIST_HEAD(&mem_device->res_list); | 401 | INIT_LIST_HEAD(&mem_device->res_list); |
401 | mem_device->handle = device->handle; | 402 | mem_device->handle = device->handle; |
403 | mem_device->device = device; | ||
402 | sprintf(acpi_device_name(device), "%s", ACPI_MEMORY_DEVICE_NAME); | 404 | sprintf(acpi_device_name(device), "%s", ACPI_MEMORY_DEVICE_NAME); |
403 | sprintf(acpi_device_class(device), "%s", ACPI_MEMORY_DEVICE_CLASS); | 405 | sprintf(acpi_device_class(device), "%s", ACPI_MEMORY_DEVICE_CLASS); |
404 | acpi_driver_data(device) = mem_device; | 406 | acpi_driver_data(device) = mem_device; |