]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: acpi_memhotplug: add struct acpi_device to struct acpi_memory_device.
authorPatrick Mochel <mochel@linux.intel.com>
Fri, 19 May 2006 20:54:38 +0000 (16:54 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 30 Jun 2006 06:20:53 +0000 (02:20 -0400)
Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpi_memhotplug.c

index 6f5e395c78af6f009ac6bc0b79d427471ebb1273..c5622244a219e524c05fc1090d8db7a5d796ca97 100644 (file)
@@ -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;