PCI: Move of_irq_parse_and_map_pci() declaration under OF_IRQ
authorGuenter Roeck <linux@roeck-us.net>
Mon, 5 Mar 2018 23:22:30 +0000 (15:22 -0800)
committerBjorn Helgaas <helgaas@kernel.org>
Tue, 6 Mar 2018 00:03:20 +0000 (18:03 -0600)
commita6f1086e29e93621a6394b94b8c0e4a4e490f38b
treecd05b1932dda3f4f8d2a3b3ff276db909e213cb7
parentc37406e05d1e541df40b8b81c4bd40753fcaf414
PCI: Move of_irq_parse_and_map_pci() declaration under OF_IRQ

Since commit 4670d610d592 ("PCI: Move OF-related PCI functions into
PCI core"), sparc:allmodconfig fails to build with the following error.

  pcie-cadence-host.c:(.text+0x4c4): undefined reference to `of_irq_parse_and_map_pci'
  pcie-cadence-host.c:(.text+0x4c8): undefined reference to `of_irq_parse_and_map_pci'

of_irq_parse_and_map_pci() is now only available if OF_IRQ is enabled.
Make its declaration and its dummy function dependent on OF_IRQ to solve
the problem.

Fixes: 4670d610d592 ("PCI: Move OF-related PCI functions into PCI core")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rob Herring <robh@kernel.org>
include/linux/of_pci.h