From 0e4d4eac78fbf437ba8e9b1c9d27600d2190023b Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Mon, 27 Feb 2023 16:02:28 +0100 Subject: libpci: drop support for pciutils < 2.2.0 This version was released in september 2005 and had a breaking api change. Drop it so that we don't need to maintain the old codepath any longer. Beside that, we have already a second codepath which is using the new `pci_get_dev` variant exclusively. Change-Id: If943db350b561a005d8292a53d9255223db3d571 Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/flashrom/+/73293 Tested-by: build bot (Jenkins) Reviewed-by: Anastasia Klimchuk Reviewed-by: Angel Pons --- pcidev.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'pcidev.c') diff --git a/pcidev.c b/pcidev.c index 0b35944a..696510ed 100644 --- a/pcidev.c +++ b/pcidev.c @@ -192,15 +192,7 @@ struct pci_dev *pcidev_find(uint16_t vendor, uint16_t device) struct pci_dev *pcidev_getdevfn(struct pci_dev *dev, const int func) { -#if !defined(OLD_PCI_GET_DEV) struct pci_dev *const new = pci_get_dev(pacc, dev->domain, dev->bus, dev->dev, func); -#else - /* pciutils/libpci before version 2.2 is too old to support - * PCI domains. Such old machines usually don't have domains - * besides domain 0, so this is not a problem. - */ - struct pci_dev *const new = pci_get_dev(pacc, dev->bus, dev->dev, func); -#endif if (new) pci_fill_info(new, PCI_FILL_IDENT); return new; -- cgit v1.2.3