aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/pci/pci.c')
-rw-r--r--arch/ia64/pci/pci.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c
index 48cc65705db4..d4e162d35b34 100644
--- a/arch/ia64/pci/pci.c
+++ b/arch/ia64/pci/pci.c
@@ -240,15 +240,12 @@ static acpi_status resource_to_window(struct acpi_resource *resource,
240 * We're only interested in _CRS descriptors that are 240 * We're only interested in _CRS descriptors that are
241 * - address space descriptors for memory or I/O space 241 * - address space descriptors for memory or I/O space
242 * - non-zero size 242 * - non-zero size
243 * - producers, i.e., the address space is routed downstream,
244 * not consumed by the bridge itself
245 */ 243 */
246 status = acpi_resource_to_address64(resource, addr); 244 status = acpi_resource_to_address64(resource, addr);
247 if (ACPI_SUCCESS(status) && 245 if (ACPI_SUCCESS(status) &&
248 (addr->resource_type == ACPI_MEMORY_RANGE || 246 (addr->resource_type == ACPI_MEMORY_RANGE ||
249 addr->resource_type == ACPI_IO_RANGE) && 247 addr->resource_type == ACPI_IO_RANGE) &&
250 addr->address.address_length && 248 addr->address.address_length)
251 addr->producer_consumer == ACPI_PRODUCER)
252 return AE_OK; 249 return AE_OK;
253 250
254 return AE_ERROR; 251 return AE_ERROR;