Home
last modified time | relevance | path

Searched hist:"3 c53e2352a9bf87128e7a8ddb69c7543941a3092" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/nvmem/
H A Dcore.cdiff 3c53e2352a9bf87128e7a8ddb69c7543941a3092 Tue Oct 02 23:11:12 CEST 2018 Arnd Bergmann <arnd@arndb.de> 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: e888d445ac33 ("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>