forked from len0rd/rockbox
binding a device driver could fail.. handle this case
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14493 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
195ef597f5
commit
4474d6827c
6 changed files with 19 additions and 11 deletions
|
@ -169,7 +169,7 @@ void usb_serial_driver_init(void)
|
|||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
void usb_serial_driver_bind(void* controler_ops)
|
||||
int usb_serial_driver_bind(void* controler_ops)
|
||||
{
|
||||
logf("usb serial: bind");
|
||||
ops = controler_ops;
|
||||
|
@ -201,10 +201,11 @@ void usb_serial_driver_bind(void* controler_ops)
|
|||
serial_debug_desc.bDebugInEndpoint = dev.in->ep_num;
|
||||
serial_debug_desc.bDebugOutEndpoint = dev.out->ep_num;
|
||||
|
||||
return;
|
||||
return 0;
|
||||
|
||||
autoconf_fail:
|
||||
logf("failed to find endpoints");
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
int usb_serial_driver_request(struct usb_ctrlrequest* request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue