Skip to contentSkip to conversation

pci: get rid of local prototypes

PATCH New Linus Walleij 2 participants 2 messages Mar 25, 2012 – Mar 30, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 pci: get rid of local prototypes

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.

---
 board/esd/cpci750/pci.c   |    4 ----
 board/prodrive/p3mx/pci.c |    4 ----
 2 files changed, 0 insertions(+), 8 deletions(-)
board/esd/cpci750/pci.c +0 -4
index 24ab13f..840385c 100644
@@ -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
board/prodrive/p3mx/pci.c +0 -4
index 712c21c..7f4604b 100644
@@ -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
Signature · 1 line
1.7.7.6
#1 lore raw

PATCH 1/2 pci: get rid of local prototypes

Dear "Linus Walleij",

Quoted 9 lines · In message <[email protected]> you…

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.

---
 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

Signature · 7 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Winners never talk about glorious victories. That's  because  they're
the  ones  who  see  what the battlefield looks like afterwards. It's
only the losers who have glorious victories.
                                      - Terry Pratchett, _Small Gods_