Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3
+3
arch/powerpc/kernel/pci_of_scan.c
··· 166 166 dev->error_state = pci_channel_io_normal; 167 167 dev->dma_mask = 0xffffffff; 168 168 169 + /* Early fixups, before probing the BARs */ 170 + pci_fixup_device(pci_fixup_early, dev); 171 + 169 172 if (!strcmp(type, "pci") || !strcmp(type, "pciex")) { 170 173 /* a PCI-PCI bridge */ 171 174 dev->hdr_type = PCI_HEADER_TYPE_BRIDGE;