diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2018-10-10 19:09:27 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-10-12 18:50:01 +0200 |
commit | 9c2120090586d7e509faa885988d4eb2441fabc2 (patch) | |
tree | 1f3ef2acb6314f85a4661606e6b1d3a9bcaf999c /include/linux/pci.h | |
parent | 25972d0c33deb5c49708baa48e7796c8d0348e98 (diff) | |
download | lwn-9c2120090586d7e509faa885988d4eb2441fabc2.tar.gz lwn-9c2120090586d7e509faa885988d4eb2441fabc2.zip |
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 <bhelgaas@google.com>
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |