All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [PATCH 1/6] usb: Return -ENOSYS when system call is not available
Date: Sun, 21 Mar 2021 16:18:19 +1300	[thread overview]
Message-ID: <20210321031824.2170848-2-sjg@chromium.org> (raw)
In-Reply-To: <20210321031824.2170848-1-sjg@chromium.org>

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 | 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 3053ccf7d97..dbc354e84f9 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.31.0.rc2.261.g7f71774620-goog

  reply	other threads:[~2021-03-21  3:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-21  3:18 [PATCH 0/6] Use -ENOSYS consistently Simon Glass
2021-03-21  3:18 ` Simon Glass [this message]
2021-03-21  4:09   ` [PATCH 1/6] usb: Return -ENOSYS when system call is not available Marek Vasut
2021-03-21  4:12     ` Simon Glass
2021-03-21 18:29       ` Marek Vasut
2021-03-21  3:18 ` [PATCH 2/6] spi: " Simon Glass
2021-03-21  3:18 ` [PATCH 3/6] tlv_eeprom: " Simon Glass
2021-03-21  3:18 ` [PATCH 4/6] clk: " Simon Glass
2021-03-21  4:37   ` Sean Anderson
2021-03-23  4:08     ` Simon Glass
2021-03-21  3:18 ` [PATCH 5/6] simple-pm-bus: Use -ENOSYS for checking missing system call Simon Glass
2021-03-21  4:39   ` Sean Anderson
2021-03-21  3:18 ` [PATCH 6/6] pinctrl: Return -ENOSYS when system call is not available Simon Glass
2021-03-21 16:38 ` [PATCH 0/6] Use -ENOSYS consistently Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210321031824.2170848-2-sjg@chromium.org \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.