aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpi_memhotplug.c
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@linux.intel.com>2006-05-19 16:54:41 -0400
committerLen Brown <len.brown@intel.com>2006-06-30 02:42:02 -0400
commitb863278523f7adbacb9e34133f4b6397cdab9977 (patch)
treeaf774e4044e52881e2bf5ba547ed7dce05c311bc /drivers/acpi/acpi_memhotplug.c
parenta6ba5ebef91a59fabd45962e576c02468dbcd33f (diff)
ACPI: acpi_memhotplug: Use acpi_device's handle instead of driver's
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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c
index c5622244a219..a8860de2feff 100644
--- a/drivers/acpi/acpi_memhotplug.c
+++ b/drivers/acpi/acpi_memhotplug.c
@@ -130,7 +130,7 @@ acpi_memory_get_device_resources(struct acpi_memory_device *mem_device)
130 struct acpi_memory_info *info, *n; 130 struct acpi_memory_info *info, *n;
131 131
132 132
133 status = acpi_walk_resources(mem_device->handle, METHOD_NAME__CRS, 133 status = acpi_walk_resources(mem_device->device->handle, METHOD_NAME__CRS,
134 acpi_memory_get_resource, mem_device); 134 acpi_memory_get_resource, mem_device);
135 if (ACPI_FAILURE(status)) { 135 if (ACPI_FAILURE(status)) {
136 list_for_each_entry_safe(info, n, &mem_device->res_list, list) 136 list_for_each_entry_safe(info, n, &mem_device->res_list, list)
@@ -193,7 +193,7 @@ static int acpi_memory_check_device(struct acpi_memory_device *mem_device)
193 193
194 194
195 /* Get device present/absent information from the _STA */ 195 /* Get device present/absent information from the _STA */
196 if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->handle, "_STA", 196 if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle, "_STA",
197 NULL, &current_status))) 197 NULL, &current_status)))
198 return -ENODEV; 198 return -ENODEV;
199 /* 199 /*
@@ -223,7 +223,7 @@ static int acpi_memory_enable_device(struct acpi_memory_device *mem_device)
223 return result; 223 return result;
224 } 224 }
225 225
226 node = acpi_get_node(mem_device->handle); 226 node = acpi_get_node(mem_device->device->handle);
227 /* 227 /*
228 * Tell the VM there is more memory here... 228 * Tell the VM there is more memory here...
229 * Note: Assume that this function returns zero on success 229 * Note: Assume that this function returns zero on success
@@ -270,7 +270,7 @@ static int acpi_memory_powerdown_device(struct acpi_memory_device *mem_device)
270 arg_list.pointer = &arg; 270 arg_list.pointer = &arg;
271 arg.type = ACPI_TYPE_INTEGER; 271 arg.type = ACPI_TYPE_INTEGER;
272 arg.integer.value = 1; 272 arg.integer.value = 1;
273 status = acpi_evaluate_object(mem_device->handle, 273 status = acpi_evaluate_object(mem_device->device->handle,
274 "_EJ0", &arg_list, NULL); 274 "_EJ0", &arg_list, NULL);
275 /* Return on _EJ0 failure */ 275 /* Return on _EJ0 failure */
276 if (ACPI_FAILURE(status)) { 276 if (ACPI_FAILURE(status)) {
@@ -279,7 +279,7 @@ static int acpi_memory_powerdown_device(struct acpi_memory_device *mem_device)
279 } 279 }
280 280
281 /* Evalute _STA to check if the device is disabled */ 281 /* Evalute _STA to check if the device is disabled */
282 status = acpi_evaluate_integer(mem_device->handle, "_STA", 282 status = acpi_evaluate_integer(mem_device->device->handle, "_STA",
283 NULL, &current_status); 283 NULL, &current_status);
284 if (ACPI_FAILURE(status)) 284 if (ACPI_FAILURE(status))
285 return -ENODEV; 285 return -ENODEV;
@@ -399,7 +399,7 @@ static int acpi_memory_device_add(struct acpi_device *device)
399 memset(mem_device, 0, sizeof(struct acpi_memory_device)); 399 memset(mem_device, 0, sizeof(struct acpi_memory_device));
400 400
401 INIT_LIST_HEAD(&mem_device->res_list); 401 INIT_LIST_HEAD(&mem_device->res_list);
402 mem_device->handle = device->handle; 402 mem_device->device->handle = device->handle;
403 mem_device->device = device; 403 mem_device->device = device;
404 sprintf(acpi_device_name(device), "%s", ACPI_MEMORY_DEVICE_NAME); 404 sprintf(acpi_device_name(device), "%s", ACPI_MEMORY_DEVICE_NAME);
405 sprintf(acpi_device_class(device), "%s", ACPI_MEMORY_DEVICE_CLASS); 405 sprintf(acpi_device_class(device), "%s", ACPI_MEMORY_DEVICE_CLASS);