summaryrefslogtreecommitdiffstats
path: root/tools/build
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-09-18 22:48:16 +0200
committerZhang Rui <rui.zhang@intel.com>2017-10-18 04:24:13 +0200
commit531fcdeb71f0be1d4c77838b1a4694c317b1eb98 (patch)
treecc02c122979ea9c715a98146aa66967c859769c5 /tools/build
parentthermal: imx: Add support for reading OCOTP through nvmem (diff)
downloadlinux-531fcdeb71f0be1d4c77838b1a4694c317b1eb98.tar.xz
linux-531fcdeb71f0be1d4c77838b1a4694c317b1eb98.zip
thermal: imx: add NVMEM dependency
The driver now fails to link into vmlinux when CONFIG_NVMEM is a loadable module: drivers/thermal/imx_thermal.o: In function `imx_thermal_probe': imx_thermal.c:(.text+0x360): undefined reference to `nvmem_cell_read_u32' imx_thermal.c:(.text+0x360): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `nvmem_cell_read_u32' imx_thermal.c:(.text+0x388): undefined reference to `nvmem_cell_read_u32' imx_thermal.c:(.text+0x388): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `nvmem_cell_read_u32' This adds a Kconfig dependency to force it to be a module as well when its dependency is loadable. Fixes: 7fe5ba04fcdc ("thermal: imx: Add support for reading OCOTP through nvmem") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'tools/build')
0 files changed, 0 insertions, 0 deletions