]> Pileus Git - ~andy/linux/commitdiff
pinctrl: at91: copy define to driver
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Nov 2013 09:30:14 +0000 (10:30 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 5 Nov 2013 09:54:27 +0000 (10:54 +0100)
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>
drivers/pinctrl/pinctrl-at91.c

index c4598dcf333c3d6050e29dfce6f6893c9ab17785..a7549c4c83b43da6d5c6d108eeec41f95d7710e8 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "core.h"
 
+#define MAX_GPIO_BANKS         5
 #define MAX_NB_GPIO_PER_BANK   32
 
 struct at91_pinctrl_mux_ops;