mac80211: apply mesh parameters after starting authsae/wpa_supplicant (#16697)
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-3.18 / 180-bcma_set_gpio_base.patch
1 Subject: [PATCH] bcma: set gpio chip->base for CONFIG_ARCH_BCM_5301X like on 47xx
2
3 This makes system GPIOs easier to deal with, e.g. for user space scripts.
4
5 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
6 ---
7 --- a/drivers/bcma/driver_gpio.c
8 +++ b/drivers/bcma/driver_gpio.c
9 @@ -240,7 +240,7 @@ int bcma_gpio_init(struct bcma_drv_cc *c
10 * relative (per chip) numbers.
11 * So let's use predictable base for BCM47XX and "random" for all other.
12 */
13 -#if IS_BUILTIN(CONFIG_BCM47XX)
14 +#if IS_BUILTIN(CONFIG_BCM47XX) || IS_BUILTIN(CONFIG_ARCH_BCM_5301X)
15 chip->base = bus->num * BCMA_GPIO_MAX_PINS;
16 #else
17 chip->base = -1;