Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350870
b: refs/heads/master
c: fb4e502
h: refs/heads/master
v: v3
  • Loading branch information
Lv Zheng authored and Rafael J. Wysocki committed Jan 10, 2013
1 parent 828d13c commit a93a155
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57bf6aefc2b9c89b89bb3fca54725ceea797bb63
refs/heads/master: fb4e50269c73a09dd89b40d6965bb9f1ee93dd1e
4 changes: 1 addition & 3 deletions trunk/drivers/acpi/acpica/rsxface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 4 additions & 1 deletion trunk/include/acpi/acrestyp.h
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,10 @@ struct acpi_resource {
#define ACPI_RS_SIZE_MIN (u32) ACPI_ROUND_UP_TO_NATIVE_WORD (12)
#define ACPI_RS_SIZE(type) (u32) (ACPI_RS_SIZE_NO_DATA + sizeof (type))

#define ACPI_NEXT_RESOURCE(res) (struct acpi_resource *)((u8 *) res + res->length)
/* Macro for walking resource templates with multiple descriptors */

#define ACPI_NEXT_RESOURCE(res) \
ACPI_ADD_PTR (struct acpi_resource, (res), (res)->length)

struct acpi_pci_routing_table {
u32 length;
Expand Down

0 comments on commit a93a155

Please sign in to comment.