From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bjorn Helgaas Subject: Re: [PATCH 2/5] PCI: provide pci_match_id() with CONFIG_PCI=n Date: Wed, 12 Sep 2018 12:17:07 -0500 Message-ID: <20180912171707.GI118330@bhelgaas-glaptop.roam.corp.google.com> References: <20180910115935.163121-1-lkundrak@v3.sk> <20180910115935.163121-3-lkundrak@v3.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20180910115935.163121-3-lkundrak@v3.sk> Sender: linux-kernel-owner@vger.kernel.org To: Lubomir Rintel Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, Mark Brown , Rob Herring , Mark Rutland , Eric Miao , Haojian Zhuang , Daniel Mack , Robert Jarzmik , Bjorn Helgaas List-Id: devicetree@vger.kernel.org Please capitalize the subject as: PCI: Provide pci_match_id() with CONFIG_PCI=n On Mon, Sep 10, 2018 at 01:59:32PM +0200, Lubomir Rintel wrote: > 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. > > Signed-off-by: Lubomir Rintel Acked-by: Bjorn Helgaas Thanks! > --- > include/linux/pci.h | 4 ++++ > 1 file changed, 4 insertions(+) > > 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 */ > -- > 2.17.1 >