diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-25 00:26:05 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-04-06 07:33:19 +0300 |
commit | 6379a94cace5b0dbb3b35f8b3890ff023a59158d (patch) | |
tree | 635060778fa17f5088ba6a33ee28c99d13d7a7f4 /drivers/usb | |
parent | aa4ad8bbad9d18c2363565418fc0d6e3dec4e928 (diff) | |
download | u-boot-6379a94cace5b0dbb3b35f8b3890ff023a59158d.tar.xz |
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/udc/udc-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/udc-uclass.c b/drivers/usb/gadget/udc/udc-uclass.c index 3053ccf7d9..dbc354e84f 100644 --- a/drivers/usb/gadget/udc/udc-uclass.c +++ b/drivers/usb/gadget/udc/udc-uclass.c @@ -45,7 +45,7 @@ int usb_gadget_release(int index) dev_array[index] = NULL; return ret; #else - return -ENOTSUPP; + return -ENOSYS; #endif } |