diff -urN ref/arch/alpha/kernel/bios32.c 2.2.20pre3aa1/arch/alpha/kernel/bios32.c --- ref/arch/alpha/kernel/bios32.c Mon Jun 18 18:37:19 2001 +++ 2.2.20pre3aa1/arch/alpha/kernel/bios32.c Mon Jun 18 18:26:56 2001 @@ -1470,4 +1470,14 @@ } } +/* Return the index of the PCI controller for device PDEV. */ +int +pci_controller_num(struct pci_dev *pdev) +{ + if (bus2hose[pdev->bus->number] == NULL) + return -ENXIO; + + return bus2hose[pdev->bus->number]->pci_hose_index; +} + #endif /* CONFIG_PCI */ diff -urN ref/include/asm-alpha/pci.h 2.2.20pre3aa1/include/asm-alpha/pci.h --- ref/include/asm-alpha/pci.h Mon Jun 18 18:37:19 2001 +++ 2.2.20pre3aa1/include/asm-alpha/pci.h Mon Jun 18 18:19:39 2001 @@ -54,12 +54,6 @@ #define IOBASE_DENSE_IO 4 /* Return the index of the PCI controller for device PDEV. */ -static __inline__ int pci_controller_num(struct pci_dev *pdev) -{ - if (bus2hose[pdev->bus->number] == NULL) - return -ENXIO; - - return bus2hose[pdev->bus->number]->pci_host_index; -} +extern int pci_controller_num(struct pci_dev *pdev); #endif /* __ALPHA_PCI_H */