brcm63xx: 3.10: backport multi-board support
[openwrt.git] / target / linux / brcm63xx / patches-3.10 / 801-ssb_export_fallback_sprom.patch
1 --- a/arch/mips/bcm63xx/boards/board_common.c
2 +++ b/arch/mips/bcm63xx/boards/board_common.c
3 @@ -13,6 +13,7 @@
4  #include <linux/platform_device.h>
5  #include <linux/ssb/ssb.h>
6  #include <linux/gpio_keys.h>
7 +#include <linux/export.h>
8  #include <linux/spi/spi.h>
9  #include <asm/addrspace.h>
10  #include <asm/bootinfo.h>
11 @@ -49,7 +50,7 @@ static struct board_info board;
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 @@ -69,6 +70,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  {