[PATCH 1/2] pci: don't assign non root buses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Impact: cleanup

it will be assigned late pci_scan_child_bus/pcibios_fixup_bus

Signed-off-by: Yinghai Lu <yinghai@xxxxxxxxxx>

---
 drivers/pci/probe.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Index: linux-2.6/drivers/pci/probe.c
===================================================================
--- linux-2.6.orig/drivers/pci/probe.c
+++ linux-2.6/drivers/pci/probe.c
@@ -1177,8 +1177,12 @@ struct pci_bus * pci_create_bus(struct d
     pci_create_legacy_files(b);
 
     b->number = b->secondary = bus;
-    b->resource[0] = &ioport_resource;
-    b->resource[1] = &iomem_resource;
+
+    /* don't need assign those for non root buses */
+    if (!parent) {
+        b->resource[0] = &ioport_resource;
+        b->resource[1] = &iomem_resource;
+    }
 
     return b;
 
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux