diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-07-15 07:15:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-07-22 16:54:40 -0400 |
commit | 1cabf7dba57011339d7e5a44b2c9829305936372 (patch) | |
tree | de622710cc50fd31e039ec74e938fab91fc96bd9 /drivers/bcma | |
parent | 16041990d1c75efb4408d19413cf4fd27aa148dd (diff) |
bcma: return correct error code when bus scan failed
It is better to return the actual error code than just -1.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma')
-rw-r--r-- | drivers/bcma/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c index 0067422ec17d..90ee350442a9 100644 --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c | |||
@@ -237,7 +237,7 @@ int bcma_bus_register(struct bcma_bus *bus) | |||
237 | err = bcma_bus_scan(bus); | 237 | err = bcma_bus_scan(bus); |
238 | if (err) { | 238 | if (err) { |
239 | bcma_err(bus, "Failed to scan: %d\n", err); | 239 | bcma_err(bus, "Failed to scan: %d\n", err); |
240 | return -1; | 240 | return err; |
241 | } | 241 | } |
242 | 242 | ||
243 | /* Early init CC core */ | 243 | /* Early init CC core */ |