aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-01-26 17:10:05 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-01-29 16:51:11 +1100
commit94afc008e1e6fbadfac0b75fcf193b6d7074b2f1 (patch)
treea72c192e58b215996fa4269e30ad10b8e52a0fb6 /arch
parentpowerpc/pci: Add missing hookup to pci_slot (diff)
downloadlinux-dev-94afc008e1e6fbadfac0b75fcf193b6d7074b2f1.tar.xz
linux-dev-94afc008e1e6fbadfac0b75fcf193b6d7074b2f1.zip
powerpc/pci: Add missing call to header fixup
Add missing call to pci_fixup_device(pci_fixup_early, ...) when building the pci_dev from scratch off the Open Firmware device-tree Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/pci_of_scan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/pci_of_scan.c b/arch/powerpc/kernel/pci_of_scan.c
index b6b2e86a50d2..4aa17401657b 100644
--- a/arch/powerpc/kernel/pci_of_scan.c
+++ b/arch/powerpc/kernel/pci_of_scan.c
@@ -166,6 +166,9 @@ struct pci_dev *of_create_pci_dev(struct device_node *node,
dev->error_state = pci_channel_io_normal;
dev->dma_mask = 0xffffffff;
+ /* Early fixups, before probing the BARs */
+ pci_fixup_device(pci_fixup_early, dev);
+
if (!strcmp(type, "pci") || !strcmp(type, "pciex")) {
/* a PCI-PCI bridge */
dev->hdr_type = PCI_HEADER_TYPE_BRIDGE;