mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
usb: Return -ENOSYS when system call is not available
Update usb_gadget_release() to use -ENOSYS, which is the correct error code for U-Boot. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
aa4ad8bbad
commit
6379a94cac
|
@ -45,7 +45,7 @@ int usb_gadget_release(int index)
|
||||||
dev_array[index] = NULL;
|
dev_array[index] = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
#else
|
#else
|
||||||
return -ENOTSUPP;
|
return -ENOSYS;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user