diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-05-17 21:51:11 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-06-13 17:42:22 -0400 |
commit | b918c62e086b2130a7bae44110ca516ef10bfe5a (patch) | |
tree | e4aee0e76da9a6ddd2d787de63f4ae7ad4d10e59 /arch/sparc/kernel/pci.c | |
parent | 92f02430934ca1c1e991a1ab3541880575042697 (diff) |
PCI: replace struct pci_bus secondary/subordinate with busn_res
Replace the struct pci_bus secondary/subordinate members with the
struct resource busn_res. Later we'll build a resource tree of these
bus numbers.
[bhelgaas: changelog]
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/sparc/kernel/pci.c')
-rw-r--r-- | arch/sparc/kernel/pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c index fdaf21811670..c85bfd788f74 100644 --- a/arch/sparc/kernel/pci.c +++ b/arch/sparc/kernel/pci.c | |||
@@ -535,7 +535,7 @@ static void __devinit of_scan_pci_bridge(struct pci_pbm_info *pbm, | |||
535 | } | 535 | } |
536 | 536 | ||
537 | bus->primary = dev->bus->number; | 537 | bus->primary = dev->bus->number; |
538 | bus->subordinate = busrange[1]; | 538 | bus->busn_res.end = busrange[1]; |
539 | bus->bridge_ctl = 0; | 539 | bus->bridge_ctl = 0; |
540 | 540 | ||
541 | /* parse ranges property, or cook one up by hand for Simba */ | 541 | /* parse ranges property, or cook one up by hand for Simba */ |
@@ -693,8 +693,8 @@ struct pci_bus * __devinit pci_scan_one_pbm(struct pci_pbm_info *pbm, | |||
693 | pci_free_resource_list(&resources); | 693 | pci_free_resource_list(&resources); |
694 | return NULL; | 694 | return NULL; |
695 | } | 695 | } |
696 | bus->secondary = pbm->pci_first_busno; | 696 | bus->busn_res.start = pbm->pci_first_busno; |
697 | bus->subordinate = pbm->pci_last_busno; | 697 | bus->busn_res.end = pbm->pci_last_busno; |
698 | 698 | ||
699 | pci_of_scan_bus(pbm, node, bus); | 699 | pci_of_scan_bus(pbm, node, bus); |
700 | pci_bus_add_devices(bus); | 700 | pci_bus_add_devices(bus); |