brcm63xx: rework fallback sprom support
[15.05/openwrt.git] / target / linux / brcm63xx / patches-3.14 / 801-ssb_export_fallback_sprom.patch
1 --- a/arch/mips/bcm63xx/sprom.c
2 +++ b/arch/mips/bcm63xx/sprom.c
3 @@ -8,6 +8,7 @@
4   */
5  
6  #include <linux/init.h>
7 +#include <linux/export.h>
8  #include <linux/kernel.h>
9  #include <linux/string.h>
10  #include <linux/platform_device.h>
11 @@ -387,7 +388,8 @@ struct fallback_sprom_match {
12         struct ssb_sprom sprom;
13  };
14  
15 -static struct fallback_sprom_match fallback_sprom;
16 +struct fallback_sprom_match fallback_sprom;
17 +EXPORT_SYMBOL(fallback_sprom);
18  
19  #if defined(CONFIG_SSB_PCIHOST)
20  int bcm63xx_get_fallback_ssb_sprom(struct ssb_bus *bus, struct ssb_sprom *out)