kernel: update kernel 4.9 to version 4.9.91
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.9 / 950-0011-pinctrl-bcm2835-Set-base-to-0-give-expected-gpio-num.patch
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 };