diff -urN 2.2.21pre2/arch/alpha/kernel/bios32.c alpha/arch/alpha/kernel/bios32.c --- 2.2.21pre2/arch/alpha/kernel/bios32.c Mon Dec 11 16:57:43 2000 +++ alpha/arch/alpha/kernel/bios32.c Fri Feb 8 08:52:28 2002 @@ -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 2.2.21pre2/include/asm-alpha/pci.h alpha/include/asm-alpha/pci.h --- 2.2.21pre2/include/asm-alpha/pci.h Fri Feb 8 08:38:19 2002 +++ alpha/include/asm-alpha/pci.h Fri Feb 8 08:54:57 2002 @@ -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_hose_index; -} +extern int pci_controller_num(struct pci_dev *pdev); #endif /* __ALPHA_PCI_H */