Re: [PATCH 5/8] nvmem: Fix io memory dependencies

From: Srinivas Kandagatla
Date: Wed Mar 30 2016 - 04:50:51 EST


Thanks for the patch,

But there is already a same patch [1] submitted few days back.
I will pick that one.


Thanks,
srini

[1] http://lkml.iu.edu/hypermail/linux/kernel/1603.0/03538.html

On 25/03/16 22:40, Richard Weinberger wrote:
Not all archs have io memory.

Fixes the following build error:
ERROR: "devm_ioremap_resource" [drivers/nvmem/nvmem_mtk-efuse.ko] undefined!
ERROR: "devm_ioremap_resource" [drivers/nvmem/nvmem_lpc18xx_eeprom.ko] undefined!

Cc: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>
Cc: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Richard Weinberger <richard@xxxxxx>
---
drivers/nvmem/Kconfig | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig
index ca52952..3766da3 100644
--- a/drivers/nvmem/Kconfig
+++ b/drivers/nvmem/Kconfig
@@ -27,6 +27,7 @@ config NVMEM_IMX_OCOTP

config NVMEM_LPC18XX_EEPROM
tristate "NXP LPC18XX EEPROM Memory Support"
+ depends on HAS_IOMEM
depends on ARCH_LPC18XX || COMPILE_TEST
help
Say Y here to include support for NXP LPC18xx EEPROM memory found in
@@ -48,6 +49,7 @@ config NVMEM_MXS_OCOTP

config MTK_EFUSE
tristate "Mediatek SoCs EFUSE support"
+ depends on HAS_IOMEM
depends on ARCH_MEDIATEK || COMPILE_TEST
select REGMAP_MMIO
help