OSDN Git Service

of_address: Guard of_bus_pci_get_flags with CONFIG_PCI
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Thu, 30 Jul 2020 00:56:14 +0000 (08:56 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 31 Jul 2020 15:30:52 +0000 (17:30 +0200)
commit0fc0ead3488836503573286bcaa56f9743ea2bcc
tree8840ff09df39e4474039c84c85c038fe1e4fcb86
parent18641fd9fa5f540007fdf792cd74c3997694872e
of_address: Guard of_bus_pci_get_flags with CONFIG_PCI

After 2f96593ecc37 ("of_address: Add bus type match for pci ranges parser"),
the last user of of_bus_pci_get_flags when CONFIG_PCI is disabled had gone.

This caused unused function warning when compiling without CONFIG_PCI.
Fix by guarding it with CONFIG_PCI.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 2f96593ecc37 ("of_address: Add bus type match for pci ranges parser")
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
drivers/of/address.c