source: trunk/target/linux/generic/patches-2.6.39/022-ssb_pcicore_build_breakage.patch @ 27009

Last change on this file since 27009 was 27009, checked in by hauke, 5 years ago

kernel: some updates for kernel 2.6.39

  • add md5sum for kernel
  • add some missing config symbols
  • add some ssb patches to make compat-wireless compile

Thank you Peter Wagner for the patch

File size: 1.8 KB
  • drivers/ssb/main.c

    From 1159024d4c0aafecaa0c6635c55153b4b39cc1c8 Mon Sep 17 00:00:00 2001
    From: "John W. Linville" <linville@tuxdriver.com>
    Date: Fri, 13 May 2011 09:23:47 -0400
    Subject: [PATCH] ssb: fix pcicore build breakage
    
    drivers/ssb/main.c:1336: error: 'SSB_PCICORE_BCAST_ADDR' undeclared (first use in this function)
    drivers/ssb/main.c:1337: error: 'SSB_PCICORE_BCAST_DATA' undeclared (first use in this function)
    drivers/ssb/main.c:1349: error: 'struct ssb_pcicore' has no member named 'dev'
    
    Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
    ---
     drivers/ssb/main.c |   14 ++++++++++----
     1 files changed, 10 insertions(+), 4 deletions(-)
    
    a b EXPORT_SYMBOL(ssb_bus_powerup); 
    13331333static void ssb_broadcast_value(struct ssb_device *dev, 
    13341334                                u32 address, u32 data) 
    13351335{ 
     1336#ifdef CONFIG_SSB_DRIVER_PCICORE 
    13361337        /* This is used for both, PCI and ChipCommon core, so be careful. */ 
    13371338        BUILD_BUG_ON(SSB_PCICORE_BCAST_ADDR != SSB_CHIPCO_BCAST_ADDR); 
    13381339        BUILD_BUG_ON(SSB_PCICORE_BCAST_DATA != SSB_CHIPCO_BCAST_DATA); 
     1340#endif 
    13391341 
    1340         ssb_write32(dev, SSB_PCICORE_BCAST_ADDR, address); 
    1341         ssb_read32(dev, SSB_PCICORE_BCAST_ADDR); /* flush */ 
    1342         ssb_write32(dev, SSB_PCICORE_BCAST_DATA, data); 
    1343         ssb_read32(dev, SSB_PCICORE_BCAST_DATA); /* flush */ 
     1342        ssb_write32(dev, SSB_CHIPCO_BCAST_ADDR, address); 
     1343        ssb_read32(dev, SSB_CHIPCO_BCAST_ADDR); /* flush */ 
     1344        ssb_write32(dev, SSB_CHIPCO_BCAST_DATA, data); 
     1345        ssb_read32(dev, SSB_CHIPCO_BCAST_DATA); /* flush */ 
    13441346} 
    13451347 
    13461348void ssb_commit_settings(struct ssb_bus *bus) 
    13471349{ 
    13481350        struct ssb_device *dev; 
    13491351 
     1352#ifdef CONFIG_SSB_DRIVER_PCICORE 
    13501353        dev = bus->chipco.dev ? bus->chipco.dev : bus->pcicore.dev; 
     1354#else 
     1355        dev = bus->chipco.dev; 
     1356#endif 
    13511357        if (WARN_ON(!dev)) 
    13521358                return; 
    13531359        /* This forces an update of the cached registers. */ 
Note: See TracBrowser for help on using the repository browser.