]> git.karo-electronics.de Git - karo-tx-linux.git/commit
regmap: Add missing header for !CONFIG_REGMAP stubs
authorMateusz Krawczuk <m.krawczuk@partner.samsung.com>
Tue, 6 Aug 2013 16:34:40 +0000 (18:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Aug 2013 05:59:06 +0000 (22:59 -0700)
commit9300766810ffff36c2db8efc2fe7c7a6c0469129
treedd1758da3dd035461e4a5fce8ba7cc170a89def2
parent83b83227df02fbabf583c902fc6d55ebab47139a
regmap: Add missing header for !CONFIG_REGMAP stubs

commit 49ccc142f9cbc33fdda18e8fa90c1c5b4a79c0ad upstream.

regmap.h requires linux/err.h if CONFIG_REGMAP is not defined. Without it I get
error.
CC      drivers/media/platform/exynos4-is/fimc-reg.o
In file included from drivers/media/platform/exynos4-is/fimc-reg.c:14:0:
include/linux/regmap.h: In function ‘regmap_write’:
include/linux/regmap.h:525:10: error: ‘EINVAL’ undeclared (first use in this function)
include/linux/regmap.h:525:10: note: each undeclared identifier is reported only once for each function it appears in

Signed-off-by: Mateusz Krawczuk <m.krawczuk@partner.samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/regmap.h