diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-07-28 22:13:52 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-07-28 22:13:52 +0000 |
commit | 1377916ea7ac5dcb7690b0a48b785b3a8109fa37 (patch) | |
tree | 979754327684910c030ed5ca0441eb54e3203a6a /target/linux/bcm53xx/patches-3.10/104-bcma-return-correct-error-code-when-bus-scan-failed.patch | |
parent | 333252e493edf46e9bd3a3915a91c67a775e6305 (diff) | |
download | upstream-1377916ea7ac5dcb7690b0a48b785b3a8109fa37.tar.gz upstream-1377916ea7ac5dcb7690b0a48b785b3a8109fa37.tar.bz2 upstream-1377916ea7ac5dcb7690b0a48b785b3a8109fa37.zip |
bcm53xx: update patches
This reorders the patchs and adds some new ones.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 37586
Diffstat (limited to 'target/linux/bcm53xx/patches-3.10/104-bcma-return-correct-error-code-when-bus-scan-failed.patch')
-rw-r--r-- | target/linux/bcm53xx/patches-3.10/104-bcma-return-correct-error-code-when-bus-scan-failed.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/patches-3.10/104-bcma-return-correct-error-code-when-bus-scan-failed.patch b/target/linux/bcm53xx/patches-3.10/104-bcma-return-correct-error-code-when-bus-scan-failed.patch new file mode 100644 index 0000000000..c6e8aca62a --- /dev/null +++ b/target/linux/bcm53xx/patches-3.10/104-bcma-return-correct-error-code-when-bus-scan-failed.patch @@ -0,0 +1,20 @@ +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> +--- + drivers/bcma/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/bcma/main.c ++++ b/drivers/bcma/main.c +@@ -237,7 +237,7 @@ int bcma_bus_register(struct bcma_bus *b + err = bcma_bus_scan(bus); + if (err) { + bcma_err(bus, "Failed to scan: %d\n", err); +- return -1; ++ return err; + } + + /* Early init CC core */ |