UPSTREAM: nvmem: Fix dependencies for !HAS_IOMEM archs
authorRichard Weinberger <richard@nod.at>
Mon, 22 Feb 2016 11:23:44 +0000 (11:23 +0000)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 5 Aug 2016 03:06:30 +0000 (11:06 +0800)
Not every arch has io memory.
So, unbreak the build by fixing the dependencies.

Change-Id: Id5983c06d5b2627516c1622c44231ba426212b9a
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
(cherry pick from 5685e24446ab9aa0a529cf87a69ad73f4775888a)

drivers/nvmem/Kconfig

index bc4ea585b42e72c469f6512bf2f1057b2ab723c8..c675ee9b14c3e4708457fdcb0bcd450e10f315f3 100644 (file)
@@ -28,6 +28,7 @@ config NVMEM_IMX_OCOTP
 config NVMEM_MXS_OCOTP
        tristate "Freescale MXS On-Chip OTP Memory Support"
        depends on ARCH_MXS || COMPILE_TEST
+       depends on HAS_IOMEM
        help
          If you say Y here, you will get readonly access to the
          One Time Programmable memory pages that are stored
@@ -39,6 +40,7 @@ config NVMEM_MXS_OCOTP
 config QCOM_QFPROM
        tristate "QCOM QFPROM Support"
        depends on ARCH_QCOM || COMPILE_TEST
+       depends on HAS_IOMEM
        select REGMAP_MMIO
        help
          Say y here to enable QFPROM support. The QFPROM provides access
@@ -50,6 +52,7 @@ config QCOM_QFPROM
 config ROCKCHIP_EFUSE
        tristate "Rockchip eFuse Support"
        depends on ARCH_ROCKCHIP || COMPILE_TEST
+       depends on HAS_IOMEM
        help
          This is a simple drive to dump specified values of Rockchip SoC
          from eFuse, such as cpu-leakage.
@@ -71,6 +74,7 @@ config NVMEM_SUNXI_SID
 config NVMEM_VF610_OCOTP
        tristate "VF610 SoC OCOTP support"
        depends on SOC_VF610 || COMPILE_TEST
+       depends on HAS_IOMEM
        help
          This is a driver for the 'OCOTP' peripheral available on Vybrid
          devices like VF5xx and VF6xx.