Skip to content

Commit

Permalink
regmap: Add missing header for !CONFIG_REGMAP stubs
Browse files Browse the repository at this point in the history
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>
Cc: stable@kernel.org
  • Loading branch information
Mateusz Krawczuk authored and Mark Brown committed Aug 6, 2013
1 parent c095ba7 commit 49ccc14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/regmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

#include <linux/list.h>
#include <linux/rbtree.h>
#include <linux/err.h>

struct module;
struct device;
Expand Down

0 comments on commit 49ccc14

Please sign in to comment.