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>
This commit is contained in:
Simon Glass 2021-03-25 10:26:05 +13:00
parent aa4ad8bbad
commit 6379a94cac
1 changed files with 1 additions and 1 deletions

View File

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