packages: clean up the package folder
[openwrt/staging/yousong.git] / package / kernel / mac80211 / patches / 845-b43-only-use-gpio-0-1-for-led.patch
1 --- a/drivers/net/wireless/b43/main.c
2 +++ b/drivers/net/wireless/b43/main.c
3 @@ -2757,6 +2757,14 @@ static int b43_gpio_init(struct b43_wlde
4 } else if (dev->dev->chip_id == 0x5354) {
5 /* Don't allow overtaking buttons GPIOs */
6 set &= 0x2; /* 0x2 is LED GPIO on BCM5354 */
7 + } else if (dev->dev->chip_id == BCMA_CHIP_ID_BCM4716 ||
8 + dev->dev->chip_id == BCMA_CHIP_ID_BCM47162 ||
9 + dev->dev->chip_id == BCMA_CHIP_ID_BCM5356 ||
10 + dev->dev->chip_id == BCMA_CHIP_ID_BCM5357 ||
11 + dev->dev->chip_id == BCMA_CHIP_ID_BCM53572) {
12 + /* just use gpio 0 and 1 for 2.4 GHz wifi led */
13 + set &= 0x3;
14 + mask &= 0x3;
15 }
16
17 if (0 /* FIXME: conditional unknown */ ) {