From 48af811dbcee868089536bf309f5f854586a3698 Mon Sep 17 00:00:00 2001 From: Bjorn Helgaas Date: Thu, 18 Dec 2003 23:16:43 -0800 Subject: [PATCH] [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index a61c6871a34fb..147fafe5040e1 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c @@ -153,7 +153,7 @@ alloc_resource (char *name, struct resource *root, unsigned long start, unsigned res->end = end; res->flags = flags; - if (request_resource(root, res)) + if (insert_resource(root, res)) return -EBUSY; return 0; -- 2.53.0