summaryrefslogtreecommitdiffstats
path: root/drivers/of/fdt.c
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2016-06-07 19:44:48 +0200
committerRob Herring <robh@kernel.org>2016-06-08 15:18:06 +0200
commit5c1d3310d84309330264e2a06e5000eb289a44ad (patch)
treebd5e6c7bb3559a63479ff97e6bc92be529bc59fe /drivers/of/fdt.c
parentdt-bindings: Add vendor prefix for TechNexion (diff)
downloadlinux-5c1d3310d84309330264e2a06e5000eb289a44ad.tar.xz
linux-5c1d3310d84309330264e2a06e5000eb289a44ad.zip
drivers: of: Fix of_pci.h header guard
The compilation of of_pci.c is governed by CONFIG_OF_PCI, but the corresponding declarations in of_pci.h are inconsistently guarded by CONFIG_OF, with the result that if CONFIG_PCI is disabled for an OF platform, the dangling external declarations are still active and the inline stub definitions not. So far this has managed to go unnoticed since it happens that the only references to these functions are from code which itself depends on CONFIG_PCI or CONFIG_OF_PCI. Fix this with the appropriate config guard so that any new callers outside PCI-specific code don't start unexpectedly breaking under certain configs. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions