[brcm63xx] do not register devices in device_initcall level, this breaks the SSB...
[openwrt.git] / target / linux / brcm63xx / patches-2.6.32 / 110-gpiodev.patch
1 Index: linux-2.6.32.9/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 ===================================================================
3 --- linux-2.6.32.9.orig/arch/mips/bcm63xx/boards/board_bcm963xx.c       2010-02-28 18:42:13.000000000 +0100
4 +++ linux-2.6.32.9/arch/mips/bcm63xx/boards/board_bcm963xx.c    2010-02-28 18:43:29.000000000 +0100
5 @@ -785,6 +785,10 @@
6  };
7  #endif
8  
9 +static struct resource gpiodev_resource = {
10 +       .start                  = 0xFFFFFFFF,
11 +};
12 +
13  static struct gpio_led_platform_data bcm63xx_led_data;
14  
15  static struct platform_device bcm63xx_gpio_leds = {
16 @@ -853,6 +857,8 @@
17  
18         platform_device_register(&mtd_dev);
19  
20 +       platform_device_register_simple("GPIODEV", 0, &gpiodev_resource, 1);
21 +
22         bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds);
23         bcm63xx_led_data.leds = board.leds;
24