summaryrefslogtreecommitdiff
path: root/include/pci.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2012-03-03 10:05:08 +0000
committerWolfgang Denk <wd@denx.de>2012-03-04 21:13:33 +0100
commita1e47b66d98f5caf19895965cfe38c176bbf01e8 (patch)
tree1636ac2a7ded404aec6adb8d1465b422ad4e157a /include/pci.h
parentd01b17611b01928b862756d86b20eaaa0ff60fb0 (diff)
downloadu-boot-imx-a1e47b66d98f5caf19895965cfe38c176bbf01e8.zip
u-boot-imx-a1e47b66d98f5caf19895965cfe38c176bbf01e8.tar.gz
u-boot-imx-a1e47b66d98f5caf19895965cfe38c176bbf01e8.tar.bz2
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 <pci.h> 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 <wd@denx.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h
index 1284c42..7d98ad4 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);