brcm63xx: add preliminary support for 3.13
[openwrt.git] / target / linux / brcm63xx / patches-3.13 / 801-ssb_export_fallback_sprom.patch
1 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
2 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
3 @@ -14,6 +14,7 @@
4  #include <linux/ssb/ssb.h>
5  #include <linux/gpio_keys.h>
6  #include <linux/input.h>
7 +#include <linux/export.h>
8  #include <linux/spi/spi.h>
9  #include <linux/spi/spi_gpio.h>
10  #include <linux/spi/74x164.h>
11 @@ -4869,7 +4870,7 @@ static const struct board_info __initcon
12   * bcm4318 WLAN work
13   */
14  #ifdef CONFIG_SSB_PCIHOST
15 -static struct ssb_sprom bcm63xx_sprom = {
16 +struct ssb_sprom bcm63xx_sprom = {
17         .revision               = 0x02,
18         .board_rev              = 0x17,
19         .country_code           = 0x0,
20 @@ -4889,6 +4890,7 @@ static struct ssb_sprom bcm63xx_sprom =
21         .boardflags_lo          = 0x2848,
22         .boardflags_hi          = 0x0000,
23  };
24 +EXPORT_SYMBOL(bcm63xx_sprom);
25  
26  int bcm63xx_get_fallback_sprom(struct ssb_bus *bus, struct ssb_sprom *out)
27  {