summaryrefslogtreecommitdiffstats
path: root/drivers/bcma/main.c
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-07-15 13:15:07 +0200
committerJohn W. Linville <linville@tuxdriver.com>2013-07-22 22:54:40 +0200
commit1cabf7dba57011339d7e5a44b2c9829305936372 (patch)
treede622710cc50fd31e039ec74e938fab91fc96bd9 /drivers/bcma/main.c
parentbcma: add constants for new ARM based SoCs (diff)
downloadlinux-1cabf7dba57011339d7e5a44b2c9829305936372.tar.xz
linux-1cabf7dba57011339d7e5a44b2c9829305936372.zip
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/main.c')
-rw-r--r--drivers/bcma/main.c2
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)
err = bcma_bus_scan(bus);
if (err) {
bcma_err(bus, "Failed to scan: %d\n", err);
- return -1;
+ return err;
}
/* Early init CC core */