aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pinctrl
diff options
context:
space:
mode:
authorStephen Warren <swarren@wwwdotorg.org>2012-03-16 14:54:23 -0600
committerLinus Walleij <linus.walleij@linaro.org>2012-04-11 09:31:01 +0200
commit6f11f6f1a0a717eb8bd0dadd101c4522b945c501 (patch)
treef9de4499341c9fb78841143969613a96da5c768e /include/linux/pinctrl
parentpinctrl: fix compile error if not select PINMUX support (diff)
downloadlinux-dev-6f11f6f1a0a717eb8bd0dadd101c4522b945c501.tar.xz
linux-dev-6f11f6f1a0a717eb8bd0dadd101c4522b945c501.zip
pinctrl: include <linux/bug.h> to prevent compile errors
Macros in <linux/pinctrl/machine.h> call ARRAY_SIZE(), the definition of which eventually calls BUILD_BUG_ON_ZERO(), which is defined in <linux/bug.h>. Include that so that every .c file using the pinctrl macros doesn't have to do that itself. Signed-off-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl')
-rw-r--r--include/linux/pinctrl/machine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pinctrl/machine.h b/include/linux/pinctrl/machine.h
index d32eb8ccba84..e4d1de742502 100644
--- a/include/linux/pinctrl/machine.h
+++ b/include/linux/pinctrl/machine.h
@@ -12,6 +12,8 @@
#ifndef __LINUX_PINCTRL_MACHINE_H
#define __LINUX_PINCTRL_MACHINE_H
+#include <linux/bug.h>
+
#include "pinctrl-state.h"
enum pinctrl_map_type {