brcm63xx: replace nvram_buf with a properly initialized array
[openwrt.git] / target / linux / brcm63xx / patches-3.14 / 800-wl_exports.patch
1 --- a/arch/mips/bcm63xx/nvram.c
2 +++ b/arch/mips/bcm63xx/nvram.c
3 @@ -40,6 +40,12 @@ struct bcm963xx_nvram {
4  static struct bcm963xx_nvram nvram;
5  static int mac_addr_used;
6  
7 +/*
8 + * Required export for WL
9 + */
10 +u32 nvram_buf[5] = { 0, cpu_to_le32(20), 0, 0, 0 };
11 +EXPORT_SYMBOL(nvram_buf);
12 +
13  void __init bcm63xx_nvram_init(void *addr)
14  {
15         unsigned int check_len;
16 --- a/arch/mips/mm/cache.c
17 +++ b/arch/mips/mm/cache.c
18 @@ -58,6 +58,7 @@ void (*_dma_cache_wback)(unsigned long s
19  void (*_dma_cache_inv)(unsigned long start, unsigned long size);
20  
21  EXPORT_SYMBOL(_dma_cache_wback_inv);
22 +EXPORT_SYMBOL(_dma_cache_inv);
23  
24  #endif /* CONFIG_DMA_NONCOHERENT */
25