aboutsummaryrefslogtreecommitdiff
path: root/drivers/acpi/acpi_memhotplug.c
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@linux.intel.com>2006-05-19 16:54:38 -0400
committerLen Brown <len.brown@intel.com>2006-06-30 02:20:53 -0400
commit3b74863df5d46f794052b5ee010cfc8fd66819dd (patch)
tree0f4bd6b1bbc157befd8adfd3d830976e04a6475a /drivers/acpi/acpi_memhotplug.c
parentaf96179a8298832cc58be212d0e4988d8a1e11bf (diff)
ACPI: acpi_memhotplug: add struct acpi_device to struct acpi_memory_device.
Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpi_memhotplug.c')
-rw-r--r--drivers/acpi/acpi_memhotplug.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c
index 6f5e395c78a..c5622244a21 100644
--- a/drivers/acpi/acpi_memhotplug.c
+++ b/drivers/acpi/acpi_memhotplug.c
@@ -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;