]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: Return -ENOSYS when system call is not available
authorSimon Glass <sjg@chromium.org>
Wed, 24 Mar 2021 21:26:05 +0000 (10:26 +1300)
committerSimon Glass <sjg@chromium.org>
Tue, 6 Apr 2021 04:33:19 +0000 (16:33 +1200)
Update usb_gadget_release() to use -ENOSYS, which is the correct error
code for U-Boot.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/usb/gadget/udc/udc-uclass.c

index 3053ccf7d970cbeb585bdde762ac126bf9f474ed..dbc354e84f9564ac7f8ea9237ce4ce537ab776cd 100644 (file)
@@ -45,7 +45,7 @@ int usb_gadget_release(int index)
                dev_array[index] = NULL;
        return ret;
 #else
-       return -ENOTSUPP;
+       return -ENOSYS;
 #endif
 }