From: Linus Walleij Date: Tue, 5 Nov 2013 09:30:14 +0000 (+0100) Subject: pinctrl: at91: copy define to driver X-Git-Tag: firefly_0821_release~176^2~5008^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=94daf85e3c4db3b804205277eec7c4eae6efe9db;p=firefly-linux-kernel-4.4.55.git 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 from creating a dependency on machine-local . Break the depenency by copying this single define into the driver. Acked-by: Nicolas Ferre Signed-off-by: Linus Walleij --- 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;