Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256454
b: refs/heads/master
c: 534e7a4
h: refs/heads/master
v: v3
  • Loading branch information
Hauke Mehrtens authored and John W. Linville committed Jul 11, 2011
1 parent 3ce8404 commit 929ef8a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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: edcc3604805b37344d0569b61a34dbe22943ba9f
refs/heads/master: 534e7a4566ca5fd3c0c92a655bcbaa6f9bd13042
4 changes: 3 additions & 1 deletion trunk/drivers/bcma/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ int bcma_bus_register(struct bcma_bus *bus)

/* Try to get SPROM */
err = bcma_sprom_get(bus);
if (err) {
if (err == -ENOENT) {
pr_err("No SPROM available\n");
} else if (err) {
pr_err("Failed to get SPROM: %d\n", err);
return -ENOENT;
}
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/bcma/sprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ int bcma_sprom_get(struct bcma_bus *bus)
if (!bus->drv_cc.core)
return -EOPNOTSUPP;

if (!(bus->drv_cc.capabilities & BCMA_CC_CAP_SPROM))
return -ENOENT;

sprom = kcalloc(SSB_SPROMSIZE_WORDS_R4, sizeof(u16),
GFP_KERNEL);
if (!sprom)
Expand Down

0 comments on commit 929ef8a

Please sign in to comment.