Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/of/Kconfig
··· 47 47 48 48 config OF_ADDRESS 49 49 def_bool y 50 - depends on !SPARC 50 + depends on !SPARC && HAS_IOMEM 51 51 select OF_ADDRESS_PCI if PCI 52 52 53 53 config OF_ADDRESS_PCI