Skip to content

Commit f06c206

Browse files
thierryredinggregkh
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4ddf1ac commit f06c206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/common/usb-conn-gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static int usb_conn_probe(struct platform_device *pdev)
206206

207207
if (IS_ERR(info->vbus)) {
208208
if (PTR_ERR(info->vbus) != -EPROBE_DEFER)
209-
dev_err(dev, "failed to get vbus\n");
209+
dev_err(dev, "failed to get vbus: %ld\n", PTR_ERR(info->vbus));
210210
return PTR_ERR(info->vbus);
211211
}
212212

0 commit comments

Comments
 (0)