Commit 2ce7aed6 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Greg Kroah-Hartman

nvmem: Fix build error of missing devm_ioremap_resource on UM

The devres.o gets linked if HAS_IOMEM is present so on ARCH=um
allyesconfig (COMPILE_TEST) failed on many files with:

drivers/built-in.o: In function `mtk_thermal_probe':
mtk_thermal.c:(.text+0x394618): undefined reference to `devm_ioremap_resource'

The users of devm_ioremap_resource() which are compile-testable should
depend on HAS_IOMEM.
Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f56c3d4f
...@@ -28,6 +28,7 @@ config NVMEM_IMX_OCOTP ...@@ -28,6 +28,7 @@ config NVMEM_IMX_OCOTP
config NVMEM_LPC18XX_EEPROM config NVMEM_LPC18XX_EEPROM
tristate "NXP LPC18XX EEPROM Memory Support" tristate "NXP LPC18XX EEPROM Memory Support"
depends on ARCH_LPC18XX || COMPILE_TEST depends on ARCH_LPC18XX || COMPILE_TEST
depends on HAS_IOMEM
help help
Say Y here to include support for NXP LPC18xx EEPROM memory found in Say Y here to include support for NXP LPC18xx EEPROM memory found in
NXP LPC185x/3x and LPC435x/3x/2x/1x devices. NXP LPC185x/3x and LPC435x/3x/2x/1x devices.
...@@ -49,6 +50,7 @@ config NVMEM_MXS_OCOTP ...@@ -49,6 +50,7 @@ config NVMEM_MXS_OCOTP
config MTK_EFUSE config MTK_EFUSE
tristate "Mediatek SoCs EFUSE support" tristate "Mediatek SoCs EFUSE support"
depends on ARCH_MEDIATEK || COMPILE_TEST depends on ARCH_MEDIATEK || COMPILE_TEST
depends on HAS_IOMEM
select REGMAP_MMIO select REGMAP_MMIO
help help
This is a driver to access hardware related data like sensor This is a driver to access hardware related data like sensor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment