kernel_optimize_test/drivers/nvmem
Arnd Bergmann 3c53e2352a nvmem: hide unused nvmem_find_cell_by_index function
nvmem_find_cell_by_index() is only called from inside an #ifdef,
so we get a build warning without CONFIG_OF:

drivers/nvmem/core.c:496:1: error: 'nvmem_find_cell_by_index' defined but not used [-Werror=unused-function]

Move it into the same #ifdef as the caller to avoid the warning.

Fixes: e888d445ac ("nvmem: resolve cells from DT at registration time")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-15 15:56:15 +02:00
..
bcm-ocotp.c
core.c nvmem: hide unused nvmem_find_cell_by_index function 2018-10-15 15:56:15 +02:00
imx-iim.c
imx-ocotp.c nvmem: imx-ocotp: add support for imx6sll 2018-07-15 14:03:06 +02:00
Kconfig nvmem: Add Spreadtrum SC27XX efuse support 2018-07-15 14:03:05 +02:00
lpc18xx_eeprom.c nvmem: lpc18xx_eeprom: remove unused variable 2018-10-15 15:56:15 +02:00
lpc18xx_otp.c
Makefile nvmem: Add Spreadtrum SC27XX efuse support 2018-07-15 14:03:05 +02:00
meson-efuse.c
meson-mx-efuse.c
mtk-efuse.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
mxs-ocotp.c nvmem: mxs-ocotp: use devm_nvmem_register() 2018-09-28 15:14:54 +02:00
qfprom.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
rave-sp-eeprom.c
rockchip-efuse.c
sc27xx-efuse.c nvmem: Add Spreadtrum SC27XX efuse support 2018-07-15 14:03:05 +02:00
snvs_lpgpr.c
sunxi_sid.c nvmem: sunxi_sid: remove unused variable in probe 2018-09-28 15:14:55 +02:00
uniphier-efuse.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
vf610-ocotp.c