From: Simon Glass Date: Wed, 24 Mar 2021 21:26:05 +0000 (+1300) Subject: usb: Return -ENOSYS when system call is not available X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=6379a94cace5b0dbb3b35f8b3890ff023a59158d;p=u-boot.git 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 --- 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 }