bcm53xx: update patches
[openwrt/svn-archive/archive.git] / target / linux / bcm53xx / patches-3.10 / 104-bcma-return-correct-error-code-when-bus-scan-failed.patch
1 bcma: return correct error code when bus scan failed
2
3 It is better to return the actual error code than just -1.
4
5 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 ---
7 drivers/bcma/main.c | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 --- a/drivers/bcma/main.c
11 +++ b/drivers/bcma/main.c
12 @@ -237,7 +237,7 @@ int bcma_bus_register(struct bcma_bus *b
13 err = bcma_bus_scan(bus);
14 if (err) {
15 bcma_err(bus, "Failed to scan: %d\n", err);
16 - return -1;
17 + return err;
18 }
19
20 /* Early init CC core */