diff options
author | Len Brown <len.brown@intel.com> | 2005-09-22 00:25:18 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-09-22 00:28:05 -0400 |
commit | eca008c8134df15262a0362623edb59902628c95 (patch) | |
tree | a3c08ab2d42b5e56c7f5cbe01e598d9895ca4fca /drivers/acpi | |
parent | bda663d36b94c723153246a4231bbc0f1cd1836e (diff) |
[ACPI] handle ACPICA 20050916's acpi_resource.type rename
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/ec.c | 2 | ||||
-rw-r--r-- | drivers/acpi/glue.c | 6 | ||||
-rw-r--r-- | drivers/acpi/motherboard.c | 4 | ||||
-rw-r--r-- | drivers/acpi/pci_link.c | 10 | ||||
-rw-r--r-- | drivers/acpi/pci_root.c | 6 |
5 files changed, 14 insertions, 14 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 7e1a445955bc..c33bfba5df8f 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -1151,7 +1151,7 @@ acpi_ec_io_ports(struct acpi_resource *resource, void *context) | |||
1151 | union acpi_ec *ec = (union acpi_ec *)context; | 1151 | union acpi_ec *ec = (union acpi_ec *)context; |
1152 | struct acpi_generic_address *addr; | 1152 | struct acpi_generic_address *addr; |
1153 | 1153 | ||
1154 | if (resource->id != ACPI_RSTYPE_IO) { | 1154 | if (resource->type != ACPI_RSTYPE_IO) { |
1155 | return AE_OK; | 1155 | return AE_OK; |
1156 | } | 1156 | } |
1157 | 1157 | ||
diff --git a/drivers/acpi/glue.c b/drivers/acpi/glue.c index e36c5da2b31a..00aeb4801d7a 100644 --- a/drivers/acpi/glue.c +++ b/drivers/acpi/glue.c | |||
@@ -99,9 +99,9 @@ do_root_bridge_busnr_callback(struct acpi_resource *resource, void *data) | |||
99 | int *busnr = (int *)data; | 99 | int *busnr = (int *)data; |
100 | struct acpi_resource_address64 address; | 100 | struct acpi_resource_address64 address; |
101 | 101 | ||
102 | if (resource->id != ACPI_RSTYPE_ADDRESS16 && | 102 | if (resource->type != ACPI_RSTYPE_ADDRESS16 && |
103 | resource->id != ACPI_RSTYPE_ADDRESS32 && | 103 | resource->type != ACPI_RSTYPE_ADDRESS32 && |
104 | resource->id != ACPI_RSTYPE_ADDRESS64) | 104 | resource->type != ACPI_RSTYPE_ADDRESS64) |
105 | return AE_OK; | 105 | return AE_OK; |
106 | 106 | ||
107 | acpi_resource_to_address64(resource, &address); | 107 | acpi_resource_to_address64(resource, &address); |
diff --git a/drivers/acpi/motherboard.c b/drivers/acpi/motherboard.c index e928e8c2c6ec..85c1fb5c9a5a 100644 --- a/drivers/acpi/motherboard.c +++ b/drivers/acpi/motherboard.c | |||
@@ -54,7 +54,7 @@ static acpi_status acpi_reserve_io_ranges(struct acpi_resource *res, void *data) | |||
54 | 54 | ||
55 | ACPI_FUNCTION_TRACE("acpi_reserve_io_ranges"); | 55 | ACPI_FUNCTION_TRACE("acpi_reserve_io_ranges"); |
56 | 56 | ||
57 | if (res->id == ACPI_RSTYPE_IO) { | 57 | if (res->type == ACPI_RSTYPE_IO) { |
58 | struct acpi_resource_io *io_res = &res->data.io; | 58 | struct acpi_resource_io *io_res = &res->data.io; |
59 | 59 | ||
60 | if (io_res->min_base_address != io_res->max_base_address) | 60 | if (io_res->min_base_address != io_res->max_base_address) |
@@ -70,7 +70,7 @@ static acpi_status acpi_reserve_io_ranges(struct acpi_resource *res, void *data) | |||
70 | request_region(io_res->min_base_address, | 70 | request_region(io_res->min_base_address, |
71 | io_res->range_length, "motherboard"); | 71 | io_res->range_length, "motherboard"); |
72 | } | 72 | } |
73 | } else if (res->id == ACPI_RSTYPE_FIXED_IO) { | 73 | } else if (res->type == ACPI_RSTYPE_FIXED_IO) { |
74 | struct acpi_resource_fixed_io *fixed_io_res = | 74 | struct acpi_resource_fixed_io *fixed_io_res = |
75 | &res->data.fixed_io; | 75 | &res->data.fixed_io; |
76 | 76 | ||
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index 82292b77e5c6..d8956c0bf143 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c | |||
@@ -108,7 +108,7 @@ acpi_pci_link_check_possible(struct acpi_resource *resource, void *context) | |||
108 | 108 | ||
109 | ACPI_FUNCTION_TRACE("acpi_pci_link_check_possible"); | 109 | ACPI_FUNCTION_TRACE("acpi_pci_link_check_possible"); |
110 | 110 | ||
111 | switch (resource->id) { | 111 | switch (resource->type) { |
112 | case ACPI_RSTYPE_START_DPF: | 112 | case ACPI_RSTYPE_START_DPF: |
113 | return_ACPI_STATUS(AE_OK); | 113 | return_ACPI_STATUS(AE_OK); |
114 | case ACPI_RSTYPE_IRQ: | 114 | case ACPI_RSTYPE_IRQ: |
@@ -201,7 +201,7 @@ acpi_pci_link_check_current(struct acpi_resource *resource, void *context) | |||
201 | 201 | ||
202 | ACPI_FUNCTION_TRACE("acpi_pci_link_check_current"); | 202 | ACPI_FUNCTION_TRACE("acpi_pci_link_check_current"); |
203 | 203 | ||
204 | switch (resource->id) { | 204 | switch (resource->type) { |
205 | case ACPI_RSTYPE_IRQ: | 205 | case ACPI_RSTYPE_IRQ: |
206 | { | 206 | { |
207 | struct acpi_resource_irq *p = &resource->data.irq; | 207 | struct acpi_resource_irq *p = &resource->data.irq; |
@@ -326,7 +326,7 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq) | |||
326 | 326 | ||
327 | switch (link->irq.resource_type) { | 327 | switch (link->irq.resource_type) { |
328 | case ACPI_RSTYPE_IRQ: | 328 | case ACPI_RSTYPE_IRQ: |
329 | resource->res.id = ACPI_RSTYPE_IRQ; | 329 | resource->res.type = ACPI_RSTYPE_IRQ; |
330 | resource->res.length = sizeof(struct acpi_resource); | 330 | resource->res.length = sizeof(struct acpi_resource); |
331 | resource->res.data.irq.edge_level = link->irq.edge_level; | 331 | resource->res.data.irq.edge_level = link->irq.edge_level; |
332 | resource->res.data.irq.active_high_low = | 332 | resource->res.data.irq.active_high_low = |
@@ -341,7 +341,7 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq) | |||
341 | break; | 341 | break; |
342 | 342 | ||
343 | case ACPI_RSTYPE_EXT_IRQ: | 343 | case ACPI_RSTYPE_EXT_IRQ: |
344 | resource->res.id = ACPI_RSTYPE_EXT_IRQ; | 344 | resource->res.type = ACPI_RSTYPE_EXT_IRQ; |
345 | resource->res.length = sizeof(struct acpi_resource); | 345 | resource->res.length = sizeof(struct acpi_resource); |
346 | resource->res.data.extended_irq.producer_consumer = | 346 | resource->res.data.extended_irq.producer_consumer = |
347 | ACPI_CONSUMER; | 347 | ACPI_CONSUMER; |
@@ -364,7 +364,7 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq) | |||
364 | goto end; | 364 | goto end; |
365 | 365 | ||
366 | } | 366 | } |
367 | resource->end.id = ACPI_RSTYPE_END_TAG; | 367 | resource->end.type = ACPI_RSTYPE_END_TAG; |
368 | 368 | ||
369 | /* Attempt to set the resource */ | 369 | /* Attempt to set the resource */ |
370 | status = acpi_set_current_resources(link->handle, &buffer); | 370 | status = acpi_set_current_resources(link->handle, &buffer); |
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index 0fd9988c283d..5d6bc815fe72 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c | |||
@@ -122,9 +122,9 @@ get_root_bridge_busnr_callback(struct acpi_resource *resource, void *data) | |||
122 | int *busnr = (int *)data; | 122 | int *busnr = (int *)data; |
123 | struct acpi_resource_address64 address; | 123 | struct acpi_resource_address64 address; |
124 | 124 | ||
125 | if (resource->id != ACPI_RSTYPE_ADDRESS16 && | 125 | if (resource->type != ACPI_RSTYPE_ADDRESS16 && |
126 | resource->id != ACPI_RSTYPE_ADDRESS32 && | 126 | resource->type != ACPI_RSTYPE_ADDRESS32 && |
127 | resource->id != ACPI_RSTYPE_ADDRESS64) | 127 | resource->type != ACPI_RSTYPE_ADDRESS64) |
128 | return AE_OK; | 128 | return AE_OK; |
129 | 129 | ||
130 | acpi_resource_to_address64(resource, &address); | 130 | acpi_resource_to_address64(resource, &address); |