summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Hilman <khilman@linaro.org>2013-08-14 16:05:02 -0700
committerSteven Rostedt <rostedt@goodmis.org>2013-09-11 21:21:25 -0400
commit1c7b585bee45f61103065c5bd31f6d1688801070 (patch)
treede8a4f65f96dc64bb47e5f6db2e98aa92fea7146
parentf3133d2560996fadd5bab2623e212a691ea70cc8 (diff)
downloadlinux-rt-1c7b585bee45f61103065c5bd31f6d1688801070.tar.gz
regmap: Add another missing header for !CONFIG_REGMAP stubs
[ Upstream commit 3f0fa9a808f98fa10a18ba2a73f13d65fda990fb ] The use of WARN_ON() needs the definitions from bug.h, without it you can get: include/linux/regmap.h: In function 'regmap_write': include/linux/regmap.h:525:2: error: implicit declaration of function 'WARN_ONCE' [-Werror=implicit-function-declaration] Signed-off-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org> Cc: stable@vger.kernel.org Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--include/linux/regmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 519d5f216ccd..db23dde04be6 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -16,6 +16,7 @@
#include <linux/list.h>
#include <linux/rbtree.h>
#include <linux/err.h>
+#include <linux/bug.h>
struct module;
struct device;