Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95483
b: refs/heads/master
c: 66d3ca9
h: refs/heads/master
i:
  95481: d31e0aa
  95479: ca982a6
v: v3
  • Loading branch information
Bob Moore authored and Len Brown committed Apr 22, 2008
1 parent f1c8f40 commit 1538deb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 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: d8846574ed4a81be319bf68728f9cca9af595afd
refs/heads/master: 66d3ca9ea28e1b3d591083772fd797b9b46410b8
11 changes: 11 additions & 0 deletions trunk/drivers/acpi/resources/rscalc.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,22 @@ acpi_rs_get_aml_length(struct acpi_resource * resource, acpi_size * size_needed)
switch (resource->type) {
case ACPI_RESOURCE_TYPE_IRQ:

/* Length can be 3 or 2 */

if (resource->data.irq.descriptor_length == 2) {
total_size--;
}
break;

case ACPI_RESOURCE_TYPE_START_DEPENDENT:

/* Length can be 1 or 0 */

if (resource->data.irq.descriptor_length == 0) {
total_size--;
}
break;

case ACPI_RESOURCE_TYPE_VENDOR:
/*
* Vendor Defined Resource:
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/acpi/resources/rsio.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ struct acpi_rsconvert_info acpi_rs_set_start_dpf[10] = {

/* Reset length to 1 byte (descriptor with flags byte) */

{ACPI_RSC_LENGTH, 0, 0, sizeof(struct aml_resource_irq)},
{ACPI_RSC_LENGTH, 0, 0, sizeof(struct aml_resource_start_dependent)},

/*
* All done if flags byte is necessary -- if either priority value
Expand Down

0 comments on commit 1538deb

Please sign in to comment.