From a1e47b66d98f5caf19895965cfe38c176bbf01e8 Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Sat, 3 Mar 2012 10:05:08 +0000 Subject: pci: move pciauto_config_init() to pci.h Fixing build regressions for the Integrator I get find that a few boards try to work around the missing declaration of pciauto_config_init() by declaring it in the local scope. This does not make sense when the sibling functions are in so move the function to the header, ridding the build error in the Integrator and getting rid of the local declarations here and there. Reported-by: Wolfgang Denk Signed-off-by: Linus Walleij --- include/pci.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/pci.h') diff --git a/include/pci.h b/include/pci.h index 1284c427b5..7d98ad4161 100644 --- a/include/pci.h +++ b/include/pci.h @@ -527,6 +527,7 @@ extern void pciauto_setup_device(struct pci_controller *hose, struct pci_region *mem, struct pci_region *prefetch, struct pci_region *io); +extern void pciauto_config_init(struct pci_controller *hose); int pciauto_config_device(struct pci_controller *hose, pci_dev_t dev); extern pci_dev_t pci_find_device (unsigned int vendor, unsigned int device, int index); -- cgit v1.2.1