summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-at91.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-11-05 10:30:14 +0100
committerLinus Walleij <linus.walleij@linaro.org>2013-11-05 10:54:27 +0100
commit94daf85e3c4db3b804205277eec7c4eae6efe9db (patch)
tree4c1cf4e036b3aa5b27799fdd5beb58aadb1d4832 /drivers/pinctrl/pinctrl-at91.c
parentpinctrl: remove minor dead code (diff)
downloadlinux-94daf85e3c4db3b804205277eec7c4eae6efe9db.tar.xz
linux-94daf85e3c4db3b804205277eec7c4eae6efe9db.zip
pinctrl: at91: copy define to driver
The #define for the maximum number of GPIO blocks was retrieved into pinctrl-at91.c by implicit inclusion of <mach/gpio.h> from <linux/gpio.h> creating a dependency on machine-local <mach/gpio.h>. Break the depenency by copying this single define into the driver. Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-at91.c')
-rw-r--r--drivers/pinctrl/pinctrl-at91.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c
index c4598dcf333c..a7549c4c83b4 100644
--- a/drivers/pinctrl/pinctrl-at91.c
+++ b/drivers/pinctrl/pinctrl-at91.c
@@ -33,6 +33,7 @@
#include "core.h"
+#define MAX_GPIO_BANKS 5
#define MAX_NB_GPIO_PER_BANK 32
struct at91_pinctrl_mux_ops;