Unverified Commit 9c212009 authored by Lubomir Rintel's avatar Lubomir Rintel Committed by Mark Brown
Browse files

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: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarLubomir Rintel <lkundrak@v3.sk>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 25972d0c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 */