diff options
author | Mateusz Krawczuk <m.krawczuk@partner.samsung.com> | 2013-08-06 18:34:40 +0200 |
---|---|---|
committer | Kamal Mostafa <kamal@canonical.com> | 2013-08-21 10:58:19 -0700 |
commit | 457880cca5211e8156b36158ef6546b9c08c17ef (patch) | |
tree | c664719dfc316f949cdc9b9e5ec13f8b4c6062cb | |
parent | 09886b85c6e0a9dde37a364026b08d0fd98b337a (diff) |
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: Kamal Mostafa <kamal@canonical.com>
-rw-r--r-- | include/linux/regmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index b7e95bf942c9..6a0b63918407 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -15,6 +15,7 @@ #include <linux/list.h> #include <linux/rbtree.h> +#include <linux/err.h> struct module; struct device; |