[brcm63xx] fix board patches so that new boards are withing appropriate ifdef
[openwrt.git] / target / linux / brcm63xx / patches-3.3 / 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 @@ -2604,7 +2605,7 @@ static void __init nb4_nvram_fixup(void)
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 @@ -2624,6 +2625,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  {