[brcm63xx] do not write to per-port over-current register, which is bogus (#6898)
[openwrt.git] / target / linux / brcm63xx / patches-2.6.33 / 200-extended-platform-devices.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -1000,6 +1000,10 @@ int __init board_register_devices(void)
4                 platform_device_register(&bcm63xx_gpio_buttons_device);
5         }
6  
7 +       if (board.num_devs) {
8 +               platform_add_devices(board.devs, board.num_devs);
9 +       }
10 +
11         return 0;
12  }
13  
14 --- a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
15 +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
16 @@ -59,6 +59,10 @@ struct board_info {
17  
18         /* Buttons */
19         struct gpio_button buttons[2];
20 +
21 +       /* Additional platform devices */
22 +       struct platform_device **devs;
23 +       unsigned int    num_devs;
24  };
25  
26  #endif /* ! BOARD_BCM963XX_H_ */