]> git.baikalelectronics.ru Git - kernel.git/commit
nvmem: include linux/err.h from header
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Jul 2017 11:22:50 +0000 (13:22 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 10 Jul 2017 12:27:39 +0000 (14:27 +0200)
commitb980a890d4cb63d7b0c369f8871394f5843fc15c
tree4eeed87363b8319dc98b0ce805ecc931f1a0751e
parent575f8bba1c2a46b0b46f9907fbd202f03b616a59
nvmem: include linux/err.h from header

The new support for nvmem devices from the rtc layer caused a build
error in some configurations:

include/linux/nvmem-provider.h: In function 'nvmem_register':
include/linux/nvmem-provider.h:51:9: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration]

This adds the missing include to ensure we can always include
the header.

Fixes: d3978d8a92f1 ("rtc: add generic nvmem support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
include/linux/nvmem-provider.h