diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-02-15 16:24:37 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-15 16:24:37 -0500 |
commit | ca994a36f585432458ead9133fcfe05440edbb7b (patch) | |
tree | be05512153a9cd5cbe1f1234bc09fd9cd388ec58 /drivers/bcma | |
parent | 12325280dfeba18164f9c47e226a40ab34e23ee7 (diff) | |
parent | 2504a6423b9ab4c36df78227055995644de19edb (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Conflicts:
net/mac80211/debugfs_sta.c
net/mac80211/sta_info.h
Diffstat (limited to 'drivers/bcma')
-rw-r--r-- | drivers/bcma/main.c | 4 | ||||
-rw-r--r-- | drivers/bcma/scan.c | 19 |
2 files changed, 12 insertions, 11 deletions
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c index bcd1c01cde9e..b8379b90d045 100644 --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c | |||
@@ -179,10 +179,8 @@ int __devinit bcma_bus_register(struct bcma_bus *bus) | |||
179 | err = bcma_sprom_get(bus); | 179 | err = bcma_sprom_get(bus); |
180 | if (err == -ENOENT) { | 180 | if (err == -ENOENT) { |
181 | pr_err("No SPROM available\n"); | 181 | pr_err("No SPROM available\n"); |
182 | } else if (err) { | 182 | } else if (err) |
183 | pr_err("Failed to get SPROM: %d\n", err); | 183 | pr_err("Failed to get SPROM: %d\n", err); |
184 | return -ENOENT; | ||
185 | } | ||
186 | 184 | ||
187 | /* Register found cores */ | 185 | /* Register found cores */ |
188 | bcma_register_cores(bus); | 186 | bcma_register_cores(bus); |
diff --git a/drivers/bcma/scan.c b/drivers/bcma/scan.c index 6621b2221b40..f94cccccfa56 100644 --- a/drivers/bcma/scan.c +++ b/drivers/bcma/scan.c | |||
@@ -415,15 +415,18 @@ int bcma_bus_scan(struct bcma_bus *bus) | |||
415 | core->bus = bus; | 415 | core->bus = bus; |
416 | 416 | ||
417 | err = bcma_get_next_core(bus, &eromptr, NULL, core_num, core); | 417 | err = bcma_get_next_core(bus, &eromptr, NULL, core_num, core); |
418 | if (err == -ENODEV) { | 418 | if (err < 0) { |
419 | core_num++; | 419 | kfree(core); |
420 | continue; | 420 | if (err == -ENODEV) { |
421 | } else if (err == -ENXIO) | 421 | core_num++; |
422 | continue; | 422 | continue; |
423 | else if (err == -ESPIPE) | 423 | } else if (err == -ENXIO) { |
424 | break; | 424 | continue; |
425 | else if (err < 0) | 425 | } else if (err == -ESPIPE) { |
426 | break; | ||
427 | } | ||
426 | return err; | 428 | return err; |
429 | } | ||
427 | 430 | ||
428 | core->core_index = core_num++; | 431 | core->core_index = core_num++; |
429 | bus->nr_cores++; | 432 | bus->nr_cores++; |