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:
Hante Meuleman
2012-10-10 11:13:06 -07:00
committed by John W. Linville
parent 4045f72bcf
commit e270b302e4

View File

@@ -1339,7 +1339,7 @@ static int brcmf_usb_probe_cb(struct brcmf_usbdev_info *devinfo,
} }
ret = brcmf_bus_start(dev); ret = brcmf_bus_start(dev);
if (ret == -ENOLINK) { if (ret) {
brcmf_dbg(ERROR, "dongle is not responding\n"); brcmf_dbg(ERROR, "dongle is not responding\n");
brcmf_detach(dev); brcmf_detach(dev);
goto fail; goto fail;