From 6379a94cace5b0dbb3b35f8b3890ff023a59158d Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 25 Mar 2021 10:26:05 +1300 Subject: [PATCH] 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 --- drivers/usb/gadget/udc/udc-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.39.5