diff options
author | Hante Meuleman <meuleman@broadcom.com> | 2012-10-10 18:13:06 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-10-15 18:42:53 (GMT) |
commit | e270b302e4771cde91e713ae17da31c1afc9a135 (patch) | |
tree | 358bf386be787dfe34ae00a1336c4bffe32c6e8c /drivers | |
parent | 4045f72bcf3c293c7c5932ef001742d8bb5ded76 (diff) | |
download | linux-fsl-qoriq-e270b302e4771cde91e713ae17da31c1afc9a135.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/brcm80211/brcmfmac/usb.c index a2b4b1e..7a6dfdc 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/usb.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/usb.c @@ -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; |