OSDN Git Service

PCI: Provide pci_match_id() with CONFIG_PCI=n
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 10 Oct 2018 17:09:27 +0000 (19:09 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 12 Oct 2018 16:50:01 +0000 (18:50 +0200)
commit9c2120090586d7e509faa885988d4eb2441fabc2
tree1f3ef2acb6314f85a4661606e6b1d3a9bcaf999c
parent25972d0c33deb5c49708baa48e7796c8d0348e98
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>
include/linux/pci.h