brcm47xx: add new led and button support
[openwrt.git] / target / linux / brcm47xx / patches-3.10 / 124-MIPS-BCM47XX-Enable-buttons-support-on-SSB.patch
1 From 6dac092b12755ccbc00412871cd9535b687d16d7 Mon Sep 17 00:00:00 2001
2 From: Rafa? Mi?ecki <zajec5@gmail.com>
3 Date: Fri, 3 Jan 2014 09:55:30 +0100
4 Subject: [PATCH] MIPS: BCM47XX: Enable buttons support on SSB
5
6 This is supported since implementing IRQ domain in ssb.
7
8 Signed-off-by: Rafa? Mi?ecki <zajec5@gmail.com>
9 ---
10  arch/mips/bcm47xx/buttons.c |    8 --------
11  1 file changed, 8 deletions(-)
12
13 --- a/arch/mips/bcm47xx/buttons.c
14 +++ b/arch/mips/bcm47xx/buttons.c
15 @@ -3,7 +3,6 @@
16  #include <linux/input.h>
17  #include <linux/gpio_keys.h>
18  #include <linux/interrupt.h>
19 -#include <linux/ssb/ssb_embedded.h>
20  #include <bcm47xx_board.h>
21  #include <bcm47xx.h>
22  
23 @@ -371,13 +370,6 @@ int __init bcm47xx_buttons_register(void
24         enum bcm47xx_board board = bcm47xx_board_get();
25         int err;
26  
27 -#ifdef CONFIG_BCM47XX_SSB
28 -       if (bcm47xx_bus_type == BCM47XX_BUS_TYPE_SSB) {
29 -               pr_debug("Buttons on SSB are not supported yet.\n");
30 -               return -ENOTSUPP;
31 -       }
32 -#endif
33 -
34         switch (board) {
35         case BCM47XX_BOARD_ASUS_RTN12:
36                 err = bcm47xx_copy_bdata(bcm47xx_buttons_asus_rtn12);