patch-2.4.25 linux-2.4.25/arch/ia64/kernel/pci.c

Next file: linux-2.4.25/arch/ia64/kernel/perfmon.c
Previous file: linux-2.4.25/arch/ia64/kernel/mca_asm.S
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/arch/ia64/kernel/pci.c linux-2.4.25/arch/ia64/kernel/pci.c
@@ -298,6 +298,9 @@
 
 	status = acpi_resource_to_address64(res, &addr);
 	if (ACPI_SUCCESS(status)) {
+		if (!addr.address_length)
+			return AE_OK;
+
 		if (addr.resource_type == ACPI_MEMORY_RANGE) {
 			flags = IORESOURCE_MEM;
 			root = &iomem_resource;
@@ -311,13 +314,6 @@
 		} else
 			return AE_OK;
 
-		if (addr.min_address_range == addr.max_address_range) {
-			printk(KERN_INFO "ACPI reports bogus %s %s range 0x%lx-0x%lx; ignoring it\n",
-					info->name, root->name, addr.min_address_range + offset,
-					addr.max_address_range + offset);
-			return AE_OK;
-		}
-
 		window = &info->controller->window[info->controller->windows++];
 		window->resource.flags |= flags;
 		window->resource.start  = addr.min_address_range;
@@ -523,8 +519,6 @@
 	if (ret < 0)
 		return ret;
 
- 	platform_pci_enable_device(dev);
-
 	printk(KERN_INFO "PCI: Found IRQ %d for device %s\n", dev->irq, dev->slot_name);
 
 	return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)