brcm63xx: add preliminary support for 3.13
[openwrt.git] / target / linux / brcm63xx / patches-3.13 / 302-extended-platform-devices.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -964,6 +964,9 @@ int __init board_register_devices(void)
4  
5         bcm63xx_hsspi_register();
6  
7 +       if (board.num_devs)
8 +               platform_add_devices(board.devs, board.num_devs);
9 +
10         bcm63xx_flash_register();
11  
12         /* count number of LEDs defined by this device */
13 --- a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
14 +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
15 @@ -57,6 +57,10 @@ struct board_info {
16  
17         /* External PHY reset GPIO flags from gpio.h */
18         unsigned long ephy_reset_gpio_flags;
19 +
20 +       /* Additional platform devices */
21 +       struct platform_device **devs;
22 +       unsigned int    num_devs;
23  };
24  
25  #endif /* ! BOARD_BCM963XX_H_ */