summaryrefslogtreecommitdiff
path: root/firmware/usbstack/drivers/device/usb_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usbstack/drivers/device/usb_serial.c')
-rw-r--r--firmware/usbstack/drivers/device/usb_serial.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/usbstack/drivers/device/usb_serial.c b/firmware/usbstack/drivers/device/usb_serial.c
index 7299dc6765..0e6d7bf9f9 100644
--- a/firmware/usbstack/drivers/device/usb_serial.c
+++ b/firmware/usbstack/drivers/device/usb_serial.c
@@ -169,7 +169,7 @@ void usb_serial_driver_init(void)
169 169
170/*-------------------------------------------------------------------------*/ 170/*-------------------------------------------------------------------------*/
171 171
172void usb_serial_driver_bind(void* controler_ops) 172int usb_serial_driver_bind(void* controler_ops)
173{ 173{
174 logf("usb serial: bind"); 174 logf("usb serial: bind");
175 ops = controler_ops; 175 ops = controler_ops;
@@ -201,10 +201,11 @@ void usb_serial_driver_bind(void* controler_ops)
201 serial_debug_desc.bDebugInEndpoint = dev.in->ep_num; 201 serial_debug_desc.bDebugInEndpoint = dev.in->ep_num;
202 serial_debug_desc.bDebugOutEndpoint = dev.out->ep_num; 202 serial_debug_desc.bDebugOutEndpoint = dev.out->ep_num;
203 203
204 return; 204 return 0;
205 205
206autoconf_fail: 206autoconf_fail:
207 logf("failed to find endpoints"); 207 logf("failed to find endpoints");
208 return -EOPNOTSUPP;
208} 209}
209 210
210int usb_serial_driver_request(struct usb_ctrlrequest* request) 211int usb_serial_driver_request(struct usb_ctrlrequest* request)