Patchwork [U-Boot,5/6] pci: move pci_ftpci100.h to include/faraday/ftpci100.h

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

Comments

Gabor Juhos - May 26, 2013, 10:11 a.m.
Even though the header files is used only by the
pci_ftpci100 driver, it contains declaration for
a function which is used by external code.

Move the header file to a common location which
lets external code use it.

Compile tested only.

Cc: Macpaul Lin <macpaul@andestech.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
---
 drivers/pci/pci_ftpci100.c                               |    4 ++--
 drivers/pci/pci_ftpci100.h => include/faraday/ftpci100.h |    0
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename drivers/pci/pci_ftpci100.h => include/faraday/ftpci100.h (100%)

diff --git a/drivers/pci/pci_ftpci100.h b/include/faraday/ftpci100.h
similarity index 100%
rename from drivers/pci/pci_ftpci100.h
rename to include/faraday/ftpci100.h
Macpaul Lin - July 24, 2013, 4:46 a.m.
Hi Gabor,

2013/5/26 Gabor Juhos <juhosg@openwrt.org>:
> Even though the header files is used only by the
> pci_ftpci100 driver, it contains declaration for
> a function which is used by external code.
>
> Move the header file to a common location which
> lets external code use it.
>
> Compile tested only.

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

Patch

diff --git a/drivers/pci/pci_ftpci100.c b/drivers/pci/pci_ftpci100.c
index a795a97..df7f615 100644
--- a/drivers/pci/pci_ftpci100.c
+++ b/drivers/pci/pci_ftpci100.c
@@ -23,11 +23,11 @@ 
 #include <malloc.h>
 #include <pci.h>
 
+#include <faraday/ftpci100.h>
+
 #include <asm/io.h>
 #include <asm/types.h> /* u32, u16.... used by pci.h */
 
-#include "pci_ftpci100.h"
-
 struct ftpci100_data {
 	unsigned int reg_base;
 	unsigned int io_base;