Changeset 42118


Ignore:
Timestamp:
2014-08-11T13:36:41+02:00 (3 years ago)
Author:
jogo
Message:

brcm63xx: correctly export fallback sprom for brcm-wl

Signed-off-by: Álvaro Fernández Rojas <noltari@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm63xx/patches-3.14/801-ssb_export_fallback_sprom.patch

    r41942 r42118  
    99 #include <linux/string.h> 
    1010 #include <linux/platform_device.h> 
    11 @@ -387,7 +388,8 @@ struct fallback_sprom_match { 
     11@@ -387,7 +388,19 @@ struct fallback_sprom_match { 
    1212        struct ssb_sprom sprom; 
    1313 }; 
     
    1515-static struct fallback_sprom_match fallback_sprom; 
    1616+struct fallback_sprom_match fallback_sprom; 
    17 +EXPORT_SYMBOL(fallback_sprom); 
     17+ 
     18+int bcm63xx_get_fallback_sprom(uint pci_bus, uint pci_slot, struct ssb_sprom *out) 
     19+{ 
     20+       if (pci_bus != fallback_sprom.pci_bus || 
     21+           pci_slot != fallback_sprom.pci_dev) 
     22+               pr_warn("fallback_sprom: pci bus/device num mismatch: expected %i/%i, but got %i/%i\n", 
     23+                       fallback_sprom.pci_bus, fallback_sprom.pci_dev, 
     24+                       pci_bus, pci_slot); 
     25+       memcpy(out, &fallback_sprom.sprom, sizeof(struct ssb_sprom)); 
     26+       return 0; 
     27+} 
     28+EXPORT_SYMBOL(bcm63xx_get_fallback_sprom); 
    1829  
    1930 #if defined(CONFIG_SSB_PCIHOST) 
Note: See TracChangeset for help on using the changeset viewer.