nvmem: Fix build error of missing devm_ioremap_resource on UM
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 31 Mar 2016 10:07:03 +0000 (11:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 May 2016 21:00:00 +0000 (14:00 -0700)
commit2ce7aed6a4da8ffa35f0232573a6901c0369720d
tree96828f8a704b2331b31d48fc9036610953a87505
parentf56c3d4f54bb2e6d542547876e3d596ef7e5fa20
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>
drivers/nvmem/Kconfig