From: Andreas Noever Date: Thu, 23 Jan 2014 20:59:24 +0000 (+0100) Subject: PCI: Use request_resource_conflict() instead of insert_ for bus numbers X-Git-Tag: next-20140306~77^2~10^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ced04d15519a15d38b46162b94a1f26b4022116e;p=karo-tx-linux.git PCI: Use request_resource_conflict() instead of insert_ for bus numbers If a conflict happens during insert_resource_conflict() and all conflicts fit within the newly inserted resource then they will become children of the new resource. This is almost certainly not what we want for bus numbers. Signed-off-by: Andreas Noever Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 5dc8e1a31e4f..21f162c5c7bb 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -1835,7 +1835,7 @@ int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int bus_max) res->flags |= IORESOURCE_PCI_FIXED; } - conflict = insert_resource_conflict(parent_res, res); + conflict = request_resource_conflict(parent_res, res); if (conflict) dev_printk(KERN_DEBUG, &b->dev,