diff options
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index b2814e23e1ed..e5dad9a9edc0 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -747,7 +747,11 @@ void pci_process_bridge_OF_ranges(struct pci_controller *hose, | |||
747 | break; | 747 | break; |
748 | } | 748 | } |
749 | if (res != NULL) { | 749 | if (res != NULL) { |
750 | of_pci_range_to_resource(&range, dev, res); | 750 | res->name = dev->full_name; |
751 | res->flags = range.flags; | ||
752 | res->start = range.cpu_addr; | ||
753 | res->end = range.cpu_addr + range.size - 1; | ||
754 | res->parent = res->child = res->sibling = NULL; | ||
751 | } | 755 | } |
752 | } | 756 | } |
753 | } | 757 | } |
@@ -1140,7 +1144,7 @@ static int reparent_resources(struct resource *parent, | |||
1140 | * as well. | 1144 | * as well. |
1141 | */ | 1145 | */ |
1142 | 1146 | ||
1143 | void pcibios_allocate_bus_resources(struct pci_bus *bus) | 1147 | static void pcibios_allocate_bus_resources(struct pci_bus *bus) |
1144 | { | 1148 | { |
1145 | struct pci_bus *b; | 1149 | struct pci_bus *b; |
1146 | int i; | 1150 | int i; |
@@ -1561,7 +1565,6 @@ EARLY_PCI_OP(write, byte, u8) | |||
1561 | EARLY_PCI_OP(write, word, u16) | 1565 | EARLY_PCI_OP(write, word, u16) |
1562 | EARLY_PCI_OP(write, dword, u32) | 1566 | EARLY_PCI_OP(write, dword, u32) |
1563 | 1567 | ||
1564 | extern int pci_bus_find_capability (struct pci_bus *bus, unsigned int devfn, int cap); | ||
1565 | int early_find_capability(struct pci_controller *hose, int bus, int devfn, | 1568 | int early_find_capability(struct pci_controller *hose, int bus, int devfn, |
1566 | int cap) | 1569 | int cap) |
1567 | { | 1570 | { |