[PATCH] goldfish: Fix build error of missing ioremap on UM

From: Krzysztof Kozlowski
Date: Thu Mar 03 2016 - 03:14:09 EST


Add missing HAS_IOMEM dependency to fix the allyesconfig build error on
ARCH=um (for x86_64):

drivers/platform/goldfish/pdev_bus.c: In function âgoldfish_pdev_bus_probeâ:
drivers/platform/goldfish/pdev_bus.c:191:18: error: implicit declaration of function âioremapâ [-Werror=implicit-function-declaration]
pdev_bus_base = ioremap(pdev_bus_addr, pdev_bus_len);

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx>
---
drivers/platform/goldfish/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/platform/goldfish/Kconfig b/drivers/platform/goldfish/Kconfig
index 50331e3e54f3..fefbb8370da0 100644
--- a/drivers/platform/goldfish/Kconfig
+++ b/drivers/platform/goldfish/Kconfig
@@ -1,6 +1,7 @@
menuconfig GOLDFISH
bool "Platform support for Goldfish virtual devices"
depends on X86_32 || X86_64 || ARM || ARM64 || MIPS
+ depends on HAS_IOMEM
---help---
Say Y here to get to see options for the Goldfish virtual platform.
This option alone does not add any kernel code.
--
2.5.0