Commit 3b74863d authored by Patrick Mochel's avatar Patrick Mochel Committed by Len Brown

ACPI: acpi_memhotplug: add struct acpi_device to struct acpi_memory_device.

Signed-off-by: default avatarPatrick Mochel <mochel@linux.intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent af96179a
......@@ -81,6 +81,7 @@ struct acpi_memory_info {
struct acpi_memory_device {
acpi_handle handle;
struct acpi_device * device;
unsigned int state; /* State of the memory device */
struct list_head res_list;
};
......@@ -399,6 +400,7 @@ static int acpi_memory_device_add(struct acpi_device *device)
INIT_LIST_HEAD(&mem_device->res_list);
mem_device->handle = device->handle;
mem_device->device = device;
sprintf(acpi_device_name(device), "%s", ACPI_MEMORY_DEVICE_NAME);
sprintf(acpi_device_class(device), "%s", ACPI_MEMORY_DEVICE_CLASS);
acpi_driver_data(device) = mem_device;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment