summaryrefslogtreecommitdiff
path: root/payloads/libpayload/libpci
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2017-07-26 14:34:09 +0200
committerNico Huber <nico.h@gmx.de>2017-12-07 21:51:24 +0000
commit4792689f67ab9d8c5c5ef20febe41224560a2eeb (patch)
tree4b2bab37db10c6f9cc983d22ac528aa6922f5cee /payloads/libpayload/libpci
parent1e2720e467e67949efec3d4e18d493c246009d9b (diff)
libpayload: Add pci_free_dev() and some boilerplate
Add just enough code and boilerplate to keep it compatible with future libflashrom. Change-Id: If0d46fab141da525f8f115d3f6045a8c417569eb Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/20955 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/libpci')
-rw-r--r--payloads/libpayload/libpci/libpci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/payloads/libpayload/libpci/libpci.c b/payloads/libpayload/libpci/libpci.c
index f715666a78..82203a16e9 100644
--- a/payloads/libpayload/libpci/libpci.c
+++ b/payloads/libpayload/libpci/libpci.c
@@ -219,3 +219,8 @@ struct pci_dev *pci_get_dev(struct pci_access* pacc, u16 domain, u8 bus, u8 dev,
cur->func = func;
return cur;
}
+
+void pci_free_dev(struct pci_dev *const dev)
+{
+ free(dev);
+}