[PATCH] Fix PCI root bridge resources to handle prior allocations

From: Bjorn Helgaas <bjorn.helgaas_at_hp.com>
Date: 2003-12-19 07:22:19
ia64: Fix PCI root bridge resources to handle prior allocations.

(alloc_resources):  Use insert_resource(), not request_resource(), to
	allocate PCI root bridge windows.  This fixes the problem
	where root bridge window allocation fails because an early
	driver (like VGA) has already allocated things.

===== arch/ia64/pci/pci.c 1.37 vs edited =====
--- 1.37/arch/ia64/pci/pci.c	Thu Jul 31 17:47:19 2003
+++ edited/arch/ia64/pci/pci.c	Thu Nov 20 10:45:52 2003
@@ -153,7 +153,7 @@
 	res->end = end;
 	res->flags = flags;
 
-	if (request_resource(root, res))
+	if (insert_resource(root, res))
 		return -EBUSY;
 
 	return 0;

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Dec 18 15:22:42 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:21 EST