diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2016-03-31 06:07:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-01 17:00:00 -0400 |
commit | 2ce7aed6a4da8ffa35f0232573a6901c0369720d (patch) | |
tree | 96828f8a704b2331b31d48fc9036610953a87505 /drivers/nvmem/Kconfig | |
parent | f56c3d4f54bb2e6d542547876e3d596ef7e5fa20 (diff) |
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: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nvmem/Kconfig')
-rw-r--r-- | drivers/nvmem/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig index ca52952d850f..9c0c59d3b22b 100644 --- a/drivers/nvmem/Kconfig +++ b/drivers/nvmem/Kconfig | |||
@@ -28,6 +28,7 @@ config NVMEM_IMX_OCOTP | |||
28 | config NVMEM_LPC18XX_EEPROM | 28 | config NVMEM_LPC18XX_EEPROM |
29 | tristate "NXP LPC18XX EEPROM Memory Support" | 29 | tristate "NXP LPC18XX EEPROM Memory Support" |
30 | depends on ARCH_LPC18XX || COMPILE_TEST | 30 | depends on ARCH_LPC18XX || COMPILE_TEST |
31 | depends on HAS_IOMEM | ||
31 | help | 32 | help |
32 | Say Y here to include support for NXP LPC18xx EEPROM memory found in | 33 | Say Y here to include support for NXP LPC18xx EEPROM memory found in |
33 | NXP LPC185x/3x and LPC435x/3x/2x/1x devices. | 34 | NXP LPC185x/3x and LPC435x/3x/2x/1x devices. |
@@ -49,6 +50,7 @@ config NVMEM_MXS_OCOTP | |||
49 | config MTK_EFUSE | 50 | config MTK_EFUSE |
50 | tristate "Mediatek SoCs EFUSE support" | 51 | tristate "Mediatek SoCs EFUSE support" |
51 | depends on ARCH_MEDIATEK || COMPILE_TEST | 52 | depends on ARCH_MEDIATEK || COMPILE_TEST |
53 | depends on HAS_IOMEM | ||
52 | select REGMAP_MMIO | 54 | select REGMAP_MMIO |
53 | help | 55 | help |
54 | This is a driver to access hardware related data like sensor | 56 | This is a driver to access hardware related data like sensor |