mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
brcmfmac: handle all exceptions as an error.
in brcmf_usb_probe_cb only return code ENOLINK was seen as an error. This is wrong, all error codes should be returned to usb subsystem. Reviewed-by: Arend Van Spriel <arend@broadcom.com> Signed-off-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Franky Lin <frankyl@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
4045f72bcf
commit
e270b302e4
1 changed files with 1 additions and 1 deletions
|
|
@ -1339,7 +1339,7 @@ static int brcmf_usb_probe_cb(struct brcmf_usbdev_info *devinfo,
|
|||
}
|
||||
|
||||
ret = brcmf_bus_start(dev);
|
||||
if (ret == -ENOLINK) {
|
||||
if (ret) {
|
||||
brcmf_dbg(ERROR, "dongle is not responding\n");
|
||||
brcmf_detach(dev);
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Reference in a new issue