diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-07-15 10:05:24 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-15 10:05:24 -0400 |
commit | 95a943c162d74b20d869917bdf5df11293c35b63 (patch) | |
tree | c69d5cb97a4d97b6062a276ecdfa8582535193af /drivers/bcma | |
parent | ecae42d37045ec71831d0e0e493e00b0e0732edd (diff) | |
parent | 95acac61ba66c4abd40e038dae8c1ed2e176c7b1 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts:
net/bluetooth/l2cap_core.c
Diffstat (limited to 'drivers/bcma')
-rw-r--r-- | drivers/bcma/main.c | 4 | ||||
-rw-r--r-- | drivers/bcma/sprom.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c index 08a14a3d667e..873e2e4ac55f 100644 --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c | |||
@@ -149,7 +149,9 @@ int bcma_bus_register(struct bcma_bus *bus) | |||
149 | 149 | ||
150 | /* Try to get SPROM */ | 150 | /* Try to get SPROM */ |
151 | err = bcma_sprom_get(bus); | 151 | err = bcma_sprom_get(bus); |
152 | if (err) { | 152 | if (err == -ENOENT) { |
153 | pr_err("No SPROM available\n"); | ||
154 | } else if (err) { | ||
153 | pr_err("Failed to get SPROM: %d\n", err); | 155 | pr_err("Failed to get SPROM: %d\n", err); |
154 | return -ENOENT; | 156 | return -ENOENT; |
155 | } | 157 | } |
diff --git a/drivers/bcma/sprom.c b/drivers/bcma/sprom.c index ffbb0e32e921..8e8d5cf32e12 100644 --- a/drivers/bcma/sprom.c +++ b/drivers/bcma/sprom.c | |||
@@ -143,6 +143,9 @@ int bcma_sprom_get(struct bcma_bus *bus) | |||
143 | if (!bus->drv_cc.core) | 143 | if (!bus->drv_cc.core) |
144 | return -EOPNOTSUPP; | 144 | return -EOPNOTSUPP; |
145 | 145 | ||
146 | if (!(bus->drv_cc.capabilities & BCMA_CC_CAP_SPROM)) | ||
147 | return -ENOENT; | ||
148 | |||
146 | sprom = kcalloc(SSB_SPROMSIZE_WORDS_R4, sizeof(u16), | 149 | sprom = kcalloc(SSB_SPROMSIZE_WORDS_R4, sizeof(u16), |
147 | GFP_KERNEL); | 150 | GFP_KERNEL); |
148 | if (!sprom) | 151 | if (!sprom) |