Patchwork [4/5] libpayload: Implement pci_cleanup() to make flashrom happy

login
register
about
Submitter Patrick Georgi
Date 2011-02-25 13:09:37
Message ID <1298640300.2470.16.camel@linux-0a8x.site>
Download mbox | patch
Permalink /patch/2695/
State Accepted
Headers show

Comments

Patrick Georgi - 2011-02-25 13:09:37
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
---
 payloads/libpayload/include/pci/pci.h |    1 +
 payloads/libpayload/libpci/libpci.c   |    6 +++++-
 2 files changed, 6 insertions(+), 1 deletions(-)
Stefan Reinauer - 2011-02-25 20:46:15
* Patrick Georgi <Patrick.Georgi@secunet.com> [110225 14:09]:
> Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
> ---
>  payloads/libpayload/include/pci/pci.h |    1 +
>  payloads/libpayload/libpci/libpci.c   |    6 +++++-
>  2 files changed, 6 insertions(+), 1 deletions(-)

Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>

Patch

diff --git a/payloads/libpayload/include/pci/pci.h b/payloads/libpayload/include/pci/pci.h
index 7345e7c..9c7ced8 100644
--- a/payloads/libpayload/include/pci/pci.h
+++ b/payloads/libpayload/include/pci/pci.h
@@ -70,6 +70,7 @@  int pci_write_long(struct pci_dev *dev, int pos, u32 data);
 
 struct pci_access *pci_alloc(void);
 void pci_init(struct pci_access*);
+void pci_cleanup(struct pci_access*);
 char *pci_filter_parse_slot(struct pci_filter*, const char*);
 int pci_filter_match(struct pci_filter*, struct pci_dev*);
 void pci_filter_init(struct pci_access*, struct pci_filter*);
diff --git a/payloads/libpayload/libpci/libpci.c b/payloads/libpayload/libpci/libpci.c
index 09b51e5..0b54ba3 100644
--- a/payloads/libpayload/libpci/libpci.c
+++ b/payloads/libpayload/libpci/libpci.c
@@ -77,11 +77,15 @@  struct pci_access *pci_alloc(void)
 	return pacc;
 }
 
-void pci_init(struct pci_access* pacc)
+void pci_init(struct pci_access *pacc)
 {
 	memset(pacc, 0, sizeof(*pacc));
 }
 
+void pci_cleanup(__attribute__ ((unused)) struct pci_access *pacc)
+{
+}
+
 void pci_filter_init(struct pci_access* pacc, struct pci_filter* pf)
 {
 	pf->domain = -1;