]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
tilepro pci: fix pci_bus.subordinate bad bombing from b918c62e
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 25 Jul 2012 19:49:23 +0000 (15:49 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Wed, 25 Jul 2012 22:22:46 +0000 (18:22 -0400)
The bombing to convert pci_bus.subordinate to busn_res.end accidentally
modified a "struct pci_dev" site, causing this file not to compile.
This commit reverts that code to use dev->subordinate again.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/pci.c

index 0fdd99d0d8b78205cec1419cfdd3564ca6044cd7..33c10864d2f773dc9bb265d8285db9fcabc9d7d7 100644 (file)
@@ -369,7 +369,7 @@ int __init pcibios_init(void)
                                 */
                                if ((dev->class >> 8) == PCI_CLASS_BRIDGE_PCI &&
                                        (PCI_SLOT(dev->devfn) == 0)) {
-                                       next_bus = dev->busn_res.end;
+                                       next_bus = dev->subordinate;
                                        controllers[i].mem_resources[0] =
                                                *next_bus->resource[0];
                                        controllers[i].mem_resources[1] =