summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uftdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/uftdi.c')
-rw-r--r--sys/dev/usb/uftdi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uftdi.c b/sys/dev/usb/uftdi.c
index aa86337..f82bf8a 100644
--- a/sys/dev/usb/uftdi.c
+++ b/sys/dev/usb/uftdi.c
@@ -357,12 +357,12 @@ USB_ATTACH(uftdi)
#endif
DPRINTF(("uftdi: in=0x%x out=0x%x\n", ucom->sc_bulkin_no, ucom->sc_bulkout_no));
ucom_attach(&sc->sc_ucom);
- USB_ATTACH_SUCCESS_RETURN;
+ return 0;
bad:
DPRINTF(("uftdi_attach: ATTACH ERROR\n"));
ucom->sc_dying = 1;
- USB_ATTACH_ERROR_RETURN;
+ return ENXIO;
}
#if 0
int
OpenPOWER on IntegriCloud