aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/of_pci.h
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-01-17 17:36:39 -0600
committerBjorn Helgaas <bhelgaas@google.com>2018-01-17 17:36:39 -0600
commit4670d610d59233b017a6ea1fa25bbf06dabbff42 (patch)
tree685348098c09162b095cfb2f9886c638e3ff402a /include/linux/of_pci.h
parentLinux 4.15-rc4 (diff)
downloadwireguard-linux-4670d610d59233b017a6ea1fa25bbf06dabbff42.tar.xz
wireguard-linux-4670d610d59233b017a6ea1fa25bbf06dabbff42.zip
PCI: Move OF-related PCI functions into PCI core
Following what has been done for other subsystems, move the remaining PCI related code out of drivers/of/ and into drivers/pci/of.c With this, we can kill a few kconfig symbols. Signed-off-by: Rob Herring <robh@kernel.org> [bhelgaas: minor whitespace, comment cleanups] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Frank Rowand <frowand.list@gmail.com>
Diffstat (limited to 'include/linux/of_pci.h')
-rw-r--r--include/linux/of_pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of_pci.h b/include/linux/of_pci.h
index bf588a05d0d0..f0e129e848ea 100644
--- a/include/linux/of_pci.h
+++ b/include/linux/of_pci.h
@@ -9,7 +9,7 @@ struct pci_dev;
struct of_phandle_args;
struct device_node;
-#ifdef CONFIG_OF_PCI
+#if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_PCI)
int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq);
struct device_node *of_pci_find_child_device(struct device_node *parent,
unsigned int devfn);