aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2015-07-05 10:18:41 -0500
committerRob Herring <robh@kernel.org>2015-07-27 08:21:04 -0500
commit39da809e86274abbd9010365906045e02da3944a (patch)
tree06f4720c31c99ff8a02091a355020b008e75c501 /drivers/of
parentLinux 4.2-rc4 (diff)
downloadlinux-dev-39da809e86274abbd9010365906045e02da3944a.tar.xz
linux-dev-39da809e86274abbd9010365906045e02da3944a.zip
of: add HAS_IOMEM depends to OF_ADDRESS
On UML builds, of_address.c fails to compile: ../drivers/of/address.c:873:2: error: implicit declaration of function ‘ioremap’ [-Werror=implicit-function-declaration] This is due to CONFIG_OF now being user selectable. Add a dependency on HAS_IOMEM to OF_ADDRESS in order to fix this. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig
index 8df1b1777745..59bb8556e43a 100644
--- a/drivers/of/Kconfig
+++ b/drivers/of/Kconfig
@@ -47,7 +47,7 @@ config OF_DYNAMIC
config OF_ADDRESS
def_bool y
- depends on !SPARC
+ depends on !SPARC && HAS_IOMEM
select OF_ADDRESS_PCI if PCI
config OF_ADDRESS_PCI