diff options
Diffstat (limited to 'drivers/acpi/resources/rscalc.c')
-rw-r--r-- | drivers/acpi/resources/rscalc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/acpi/resources/rscalc.c b/drivers/acpi/resources/rscalc.c index dcc51e92ac92..db0a835e3317 100644 --- a/drivers/acpi/resources/rscalc.c +++ b/drivers/acpi/resources/rscalc.c | |||
@@ -211,6 +211,13 @@ acpi_rs_get_aml_length(struct acpi_resource * resource, acpi_size * size_needed) | |||
211 | * variable-length fields | 211 | * variable-length fields |
212 | */ | 212 | */ |
213 | switch (resource->type) { | 213 | switch (resource->type) { |
214 | case ACPI_RESOURCE_TYPE_IRQ: | ||
215 | |||
216 | if (resource->data.irq.descriptor_length == 2) { | ||
217 | total_size--; | ||
218 | } | ||
219 | break; | ||
220 | |||
214 | case ACPI_RESOURCE_TYPE_VENDOR: | 221 | case ACPI_RESOURCE_TYPE_VENDOR: |
215 | /* | 222 | /* |
216 | * Vendor Defined Resource: | 223 | * Vendor Defined Resource: |