Author: oxygene Date: Tue Mar 1 08:24:53 2011 New Revision: 6416 URL: https://tracker.coreboot.org/trac/coreboot/changeset/6416
Log: libpayload: Implement pci_cleanup()
Signed-off-by: Patrick Georgi patrick.georgi@secunet.com Acked-by: Stefan Reinauer stefan.reinauer@coreboot.org
Modified: trunk/payloads/libpayload/include/pci/pci.h trunk/payloads/libpayload/libpci/libpci.c
Modified: trunk/payloads/libpayload/include/pci/pci.h ============================================================================== --- trunk/payloads/libpayload/include/pci/pci.h Tue Mar 1 08:23:49 2011 (r6415) +++ trunk/payloads/libpayload/include/pci/pci.h Tue Mar 1 08:24:53 2011 (r6416) @@ -70,6 +70,7 @@
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*);
Modified: trunk/payloads/libpayload/libpci/libpci.c ============================================================================== --- trunk/payloads/libpayload/libpci/libpci.c Tue Mar 1 08:23:49 2011 (r6415) +++ trunk/payloads/libpayload/libpci/libpci.c Tue Mar 1 08:24:53 2011 (r6416) @@ -77,11 +77,15 @@ 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;