--- pci_auto.c 2001-11-26 20:07:06.000000000 -0500 +++ pci_auto.c.new 2003-03-24 10:54:14.000000000 -0500 @@ -74,9 +74,14 @@ int early_##rw##_config_##size(struct pci_channel *hose, \ int top_bus, int bus, int devfn, int offset, type value) \ { \ - return pci_##rw##_config_##size( \ - fake_pci_dev(hose, top_bus, bus, devfn), \ - offset, value); \ + if (hose->early_pci_ops->rw##_##size != NULL) \ + return hose->early_pci_ops->rw##_##size( \ + fake_pci_dev(hose, top_bus, bus, devfn), \ + offset, value); \ + else \ + return pci_##rw##_config_##size( \ + fake_pci_dev(hose, top_bus, bus, devfn), \ + offset, value); \ } EARLY_PCI_OP(read, byte, u8 *)