diff options
author | Lv Zheng <lv.zheng@intel.com> | 2012-12-19 05:38:31 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-10 12:36:19 +0100 |
commit | fb4e50269c73a09dd89b40d6965bb9f1ee93dd1e (patch) | |
tree | d6f43fbdddb946fe696578db27132d3c319328f0 /drivers/acpi | |
parent | 57bf6aefc2b9c89b89bb3fca54725ceea797bb63 (diff) | |
download | op-kernel-dev-fb4e50269c73a09dd89b40d6965bb9f1ee93dd1e.zip op-kernel-dev-fb4e50269c73a09dd89b40d6965bb9f1ee93dd1e.tar.gz |
ACPICA: Resource Manager: update template walking with ACPI_NEXT_RESOURCE.
Cleanup the ACPI_NEXT_RESOURCE macro. Update AcpiWalkResources
to use ACPI_NEXT_RESOURCE. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/acpica/rsxface.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/rsxface.c b/drivers/acpi/acpica/rsxface.c index 5aad744..3a5ace7 100644 --- a/drivers/acpi/acpica/rsxface.c +++ b/drivers/acpi/acpica/rsxface.c @@ -606,9 +606,7 @@ acpi_walk_resources(acpi_handle device_handle, /* Get the next resource descriptor */ - resource = - ACPI_ADD_PTR(struct acpi_resource, resource, - resource->length); + resource = ACPI_NEXT_RESOURCE(resource); } ACPI_FREE(buffer.pointer); |