From: Lubomir Rintel Date: Wed, 10 Oct 2018 17:09:27 +0000 (+0200) Subject: PCI: Provide pci_match_id() with CONFIG_PCI=n X-Git-Tag: v4.20-rc5~38^2~15 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9c2120090586d7e509faa885988d4eb2441fabc2;p=users%2Fjedix%2Flinux-maple.git PCI: Provide pci_match_id() with CONFIG_PCI=n This spares drivers from #ifdef-ing on CONFIG_PCI if the driver can be optionally built on machines without PCI bus. Consistent with acpi_driver_match_device() and similar. Acked-by: Bjorn Helgaas Signed-off-by: Lubomir Rintel Signed-off-by: Mark Brown --- diff --git a/include/linux/pci.h b/include/linux/pci.h index e72ca8dd6241..d2f14eb23ea4 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1702,6 +1702,10 @@ static inline int pci_irqd_intx_xlate(struct irq_domain *d, unsigned long *out_hwirq, unsigned int *out_type) { return -EINVAL; } + +static inline const struct pci_device_id *pci_match_id(const struct pci_device_id *ids, + struct pci_dev *dev) +{ return NULL; } #endif /* CONFIG_PCI */ /* Include architecture-dependent settings and functions */