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 3053ccf..dbc354e 100644 (file)
@@ -45,7 +45,7 @@ int usb_gadget_release(int index)
                dev_array[index] = NULL;
        return ret;
 #else
-       return -ENOTSUPP;
+       return -ENOSYS;
 #endif
 }