diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2006-01-09 22:50:37 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-10 00:25:37 -0500 |
commit | 9d17a5c611a7462a41b06c75f661f4106d380a86 (patch) | |
tree | 86240edadbc5add98fc9a6521efad5efa6a1fe44 /arch/powerpc | |
parent | f8cd32167d96680af19c3ef5fb01d4460be89982 (diff) |
[PATCH] powerpc: Extended PCI config space
This adds back the call to pci_cfg_space_size() when building the PCI
tree from OF nodes that was commented out due to the function not being
exported by the PCI code. It's now exported, so let's use it.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/pci_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index fc60a773af7d..ba21a6c4f467 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c | |||
@@ -381,7 +381,7 @@ struct pci_dev *of_create_pci_dev(struct device_node *node, | |||
381 | dev->subsystem_vendor = get_int_prop(node, "subsystem-vendor-id", 0); | 381 | dev->subsystem_vendor = get_int_prop(node, "subsystem-vendor-id", 0); |
382 | dev->subsystem_device = get_int_prop(node, "subsystem-id", 0); | 382 | dev->subsystem_device = get_int_prop(node, "subsystem-id", 0); |
383 | 383 | ||
384 | dev->cfg_size = 256; /*pci_cfg_space_size(dev);*/ | 384 | dev->cfg_size = pci_cfg_space_size(dev); |
385 | 385 | ||
386 | sprintf(pci_name(dev), "%04x:%02x:%02x.%d", pci_domain_nr(bus), | 386 | sprintf(pci_name(dev), "%04x:%02x:%02x.%d", pci_domain_nr(bus), |
387 | dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); | 387 | dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); |