summaryrefslogtreecommitdiff
path: root/drivers/usb/common
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2020-08-06 18:02:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-18 12:13:44 +0200
commitf06c206aadda5cb60d6c911d7ea5f15396b2008d (patch)
treeca5dd2a568bf6402d66e2029b084bd686fbfb806 /drivers/usb/common
parent4ddf1ac79e5f082451cd549283d2eb7559ab6ca9 (diff)
usb: common: usb-conn-gpio: Print error on failure to get VBUS
The exact error that happened trying to get the VBUS supply can be useful to troubleshoot what's going on. Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://lore.kernel.org/r/20200806160248.3936771-2-thierry.reding@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/common')
-rw-r--r--drivers/usb/common/usb-conn-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/common/usb-conn-gpio.c b/drivers/usb/common/usb-conn-gpio.c
index c5b516d327c7..6c4e3a19f42c 100644
--- a/drivers/usb/common/usb-conn-gpio.c
+++ b/drivers/usb/common/usb-conn-gpio.c
@@ -206,7 +206,7 @@ static int usb_conn_probe(struct platform_device *pdev)
if (IS_ERR(info->vbus)) {
if (PTR_ERR(info->vbus) != -EPROBE_DEFER)
- dev_err(dev, "failed to get vbus\n");
+ dev_err(dev, "failed to get vbus: %ld\n", PTR_ERR(info->vbus));
return PTR_ERR(info->vbus);
}