Patchwork [U-Boot,4/6] pci: add prototype for pci_ftpci_init() function

login
register
mail settings
Submitter Gabor Juhos
Date May 26, 2013, 10:11 a.m.
Message ID <1369563091-21640-5-git-send-email-juhosg@openwrt.org>
Download mbox | patch
Permalink /patch/246378/
State Accepted
Delegated to: Macpaul Lin
Headers show

Comments

Gabor Juhos - May 26, 2013, 10:11 a.m.
The pci_ftpci_init() function is implemented
in 'drivers/pci/pci_ftpci100.c' however it is
always called by external code.

Add function declaration into ftpci100.h to
make it visible for external code.

Compile tested only.

Cc: Macpaul Lin <macpaul@andestech.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
---
 drivers/pci/pci_ftpci100.h |    2 ++
 1 file changed, 2 insertions(+)
Macpaul Lin - July 24, 2013, 4:45 a.m.
Hi Gabor,

2013/5/26 Gabor Juhos <juhosg@openwrt.org>:
> The pci_ftpci_init() function is implemented
> in 'drivers/pci/pci_ftpci100.c' however it is
> always called by external code.
>
> Add function declaration into ftpci100.h to
> make it visible for external code.
>
> Compile tested only.
>

Applied to u-boot-nds32/master
Thanks for your help!

Patch

diff --git a/drivers/pci/pci_ftpci100.h b/drivers/pci/pci_ftpci100.h
index 19c81a8..7a4945a 100644
--- a/drivers/pci/pci_ftpci100.h
+++ b/drivers/pci/pci_ftpci100.h
@@ -76,6 +76,8 @@  struct ftpci100_ahbc {
 #define FTPCI100_BRIDGE_VENDORID		0x159b
 #define FTPCI100_BRIDGE_DEVICEID		0x4321
 
+void pci_ftpci_init(void);
+
 struct pcibar {
 	unsigned int size;
 	unsigned int addr;