Skip to content

Commit

Permalink
tilepro pci: fix pci_bus.subordinate bad bombing from b918c62
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
cmetcalf-tilera committed Jul 25, 2012
1 parent d41ca6d commit 7f240b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/tile/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] =
Expand Down

0 comments on commit 7f240b7

Please sign in to comment.