diff mbox

[U-Boot,1/2] pci: get rid of local prototypes

Message ID 1332713585-11084-1-git-send-email-linus.walleij@linaro.org
State Accepted
Commit 8d96e1b03476d8e3b90ee3ff6e68238cb095478e
Headers show

Commit Message

Linus Walleij March 25, 2012, 10:13 p.m. UTC
two boards were redeclaring pciauto_region_allocate() in their local
scope for no obvious reason, the function is in <pci.h> anyway,
this is probably just copying artifacts and old cruft.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 board/esd/cpci750/pci.c   |    4 ----
 board/prodrive/p3mx/pci.c |    4 ----
 2 files changed, 0 insertions(+), 8 deletions(-)

Comments

Wolfgang Denk March 30, 2012, 8:45 p.m. UTC | #1
Dear "Linus Walleij",

In message <1332713585-11084-1-git-send-email-linus.walleij@linaro.org> you wrote:
> two boards were redeclaring pciauto_region_allocate() in their local
> scope for no obvious reason, the function is in <pci.h> anyway,
> this is probably just copying artifacts and old cruft.
> 
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  board/esd/cpci750/pci.c   |    4 ----
>  board/prodrive/p3mx/pci.c |    4 ----
>  2 files changed, 0 insertions(+), 8 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/board/esd/cpci750/pci.c b/board/esd/cpci750/pci.c
index 24ab13f..840385c 100644
--- a/board/esd/cpci750/pci.c
+++ b/board/esd/cpci750/pci.c
@@ -28,10 +28,6 @@ 
 #ifdef CONFIG_PCI
 #include <pci.h>
 
-#ifdef CONFIG_PCI_PNP
-int  pciauto_region_allocate(struct pci_region* res, unsigned int size, unsigned int *bar);
-#endif
-
 #include "../../Marvell/include/pci.h"
 
 #undef DEBUG
diff --git a/board/prodrive/p3mx/pci.c b/board/prodrive/p3mx/pci.c
index 712c21c..7f4604b 100644
--- a/board/prodrive/p3mx/pci.c
+++ b/board/prodrive/p3mx/pci.c
@@ -28,10 +28,6 @@ 
 #ifdef CONFIG_PCI
 #include <pci.h>
 
-#ifdef CONFIG_PCI_PNP
-int  pciauto_region_allocate(struct pci_region* res, unsigned int size, unsigned int *bar);
-#endif
-
 #include "../../Marvell/include/pci.h"
 
 #undef DEBUG