Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5527faf1 authored by Rob Herring's avatar Rob Herring Committed by Alistair Strachan
Browse files

UPSTREAM: 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: default avatarRob Herring <robh@kernel.org>
Cc: Grant Likely <grant.likely@linaro.org>
(cherry picked from commit 39da809e86274abbd9010365906045e02da3944a)
Bug: 70214720
Change-Id: I905b264db2d1be6996d6a044afd974c6d9e148de
Signed-off-by: default avatarAlistair Strachan <astrachan@google.com>
parent 8b066824
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,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