Commit 48af811d authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by David Mosberger

[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.
parent d668b16a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment