ae52152254b10bad518de1d5db6eaf23204a8d1f
[openwrt/staging/ldir.git] /
1 From ea9188a48450ddab740fe5ffe6733fb2362ea5c8 Mon Sep 17 00:00:00 2001
2 From: notro <notro@tronnes.org>
3 Date: Thu, 10 Jul 2014 13:59:47 +0200
4 Subject: [PATCH] pinctrl-bcm2835: Set base to 0 give expected gpio numbering
5
6 Signed-off-by: Noralf Tronnes <notro@tronnes.org>
7 ---
8 drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 --- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c
12 +++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
13 @@ -380,7 +380,7 @@ static struct gpio_chip bcm2835_gpio_chi
14 .get = bcm2835_gpio_get,
15 .set = bcm2835_gpio_set,
16 .to_irq = bcm2835_gpio_to_irq,
17 - .base = -1,
18 + .base = 0,
19 .ngpio = BCM2835_NUM_GPIOS,
20 .can_sleep = false,
21 };