[brcm63xx] profiles: GW6X00: fixed inclusion of both wl and wlc wireless tools.....
[openwrt.git] / target / linux / brcm63xx / patches-3.0 / 200-extended-platform-devices.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -923,6 +923,9 @@ int __init board_register_devices(void)
4 if (board.has_udc0)
5 bcm63xx_udc_register();
6
7 + if (board.num_devs)
8 + platform_add_devices(board.devs, board.num_devs);
9 +
10 /* read base address of boot chip select (0) */
11 if (BCMCPU_IS_6345())
12 val = 0x1fc00000;
13 --- a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
14 +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
15 @@ -61,6 +61,10 @@ struct board_info {
16
17 /* Buttons */
18 struct gpio_button buttons[2];
19 +
20 + /* Additional platform devices */
21 + struct platform_device **devs;
22 + unsigned int num_devs;
23 };
24
25 #endif /* ! BOARD_BCM963XX_H_ */
This page took 0.041158 seconds and 5 git commands to generate.