Skip to content
Commit 0fc0ead3 authored by Jiaxun Yang's avatar Jiaxun Yang Committed by Thomas Bogendoerfer
Browse files

of_address: Guard of_bus_pci_get_flags with CONFIG_PCI



After 2f96593e ("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: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Fixes: 2f96593e ("of_address: Add bus type match for pci ranges parser")
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 18641fd9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment