mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
usb: gadget: udc: core: Print error code in usb_gadget_probe_driver()
When the UDC is not found, print also the error code for easier debugging. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20211004144126.49154-2-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
dab67a011d
commit
20733e6d3f
1 changed files with 1 additions and 1 deletions
|
@ -1564,7 +1564,7 @@ int usb_gadget_probe_driver(struct usb_gadget_driver *driver)
|
|||
|
||||
mutex_unlock(&udc_lock);
|
||||
if (ret)
|
||||
pr_warn("couldn't find an available UDC or it's busy\n");
|
||||
pr_warn("couldn't find an available UDC or it's busy: %d\n", ret);
|
||||
return ret;
|
||||
found:
|
||||
ret = udc_bind_to_driver(udc, driver);
|
||||
|
|
Loading…
Reference in a new issue