[ 14/60] regmap: Add missing header for !CONFIG_REGMAP stubs

From: Greg Kroah-Hartman
Date: Tue Aug 13 2013 - 02:58:11 EST


3.10-stable review patch. If anyone has any objections, please let me know.

------------------

From: Mateusz Krawczuk <m.krawczuk@xxxxxxxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
include/linux/regmap.h | 1 +
1 file changed, 1 insertion(+)

--- 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;


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/