Skip to content

Commit

Permalink
pinctrl: at91: copy define to driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Walleij committed Nov 5, 2013
1 parent 808e657 commit 94daf85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pinctrl/pinctrl-at91.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

#include "core.h"

#define MAX_GPIO_BANKS 5
#define MAX_NB_GPIO_PER_BANK 32

struct at91_pinctrl_mux_ops;
Expand Down

0 comments on commit 94daf85

Please sign in to comment.