UPSTREAM: 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> (cherry picked from commit 20733e6d3f34033052181f6d094d6eed19ac77ed) Bug: 275538389 Change-Id: I8b130d3505137cc9d0a2e2fff3dea5b613a13542 Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
This commit is contained in:
committed by
Treehugger Robot
parent
d3e95905ce
commit
ac3cf8a41a
@@ -1561,7 +1561,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);
|
||||
|
||||
Reference in New Issue
Block a user