commit | 12fb749e8d01b0ee9de124b52460104bc8e503d1 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Mar 25 10:26:05 2021 +1300 |
committer | Simon Glass <sjg@chromium.org> | Tue Apr 06 16:33:19 2021 +1200 |
tree | 635060778fa17f5088ba6a33ee28c99d13d7a7f4 | |
parent | e74f8f8ba5949d9b47be5babe43be13cbe17fd55 [diff] [blame] |
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>
diff --git a/drivers/usb/gadget/udc/udc-uclass.c b/drivers/usb/gadget/udc/udc-uclass.c index 3053ccf..dbc354e 100644 --- a/drivers/usb/gadget/udc/udc-uclass.c +++ b/drivers/usb/gadget/udc/udc-uclass.c
@@ -45,7 +45,7 @@ dev_array[index] = NULL; return ret; #else - return -ENOTSUPP; + return -ENOSYS; #endif }