Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199455
b: refs/heads/master
c: da1fdb0
h: refs/heads/master
i:
  199453: c664e52
  199451: c307e02
  199447: f6b6ea9
  199439: 3ecbae1
  199423: d047568
v: v3
  • Loading branch information
Christoph Fritz authored and John W. Linville committed May 28, 2010
1 parent 442b202 commit 8eceaf5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 368a07d26ae99c80678a968946744fd83e7708d0
refs/heads/master: da1fdb02d9200ff28b6f3a380d21930335fe5429
9 changes: 6 additions & 3 deletions trunk/drivers/ssb/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,9 +625,12 @@ static int ssb_pci_sprom_get(struct ssb_bus *bus,
ssb_printk(KERN_ERR PFX "No SPROM available!\n");
return -ENODEV;
}

bus->sprom_offset = (bus->chipco.dev->id.revision < 31) ?
SSB_SPROM_BASE1 : SSB_SPROM_BASE31;
if (bus->chipco.dev) { /* can be unavailible! */
bus->sprom_offset = (bus->chipco.dev->id.revision < 31) ?
SSB_SPROM_BASE1 : SSB_SPROM_BASE31;
} else {
bus->sprom_offset = SSB_SPROM_BASE1;
}

buf = kcalloc(SSB_SPROMSIZE_WORDS_R123, sizeof(u16), GFP_KERNEL);
if (!buf)
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/ssb/sprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ bool ssb_is_sprom_available(struct ssb_bus *bus)
/* this routine differs from specs as we do not access SPROM directly
on PCMCIA */
if (bus->bustype == SSB_BUSTYPE_PCI &&
bus->chipco.dev && /* can be unavailible! */
bus->chipco.dev->id.revision >= 31)
return bus->chipco.capabilities & SSB_CHIPCO_CAP_SPROM;

Expand Down

0 comments on commit 8eceaf5

Please sign in to comment.