mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 11:56:14 +07:00
usb: gadget: udc: core: Warn about failed to find udc
If we do not warn here, the user may not know failed to find udc device by a gadget driver with the same name because it silently fails. Let's print a warning in that case so developers find these problems faster. Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com> Signed-off-by: Felipe Balbi <balbi@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
463f67aec2
commit
1d039a8061
@ -1414,6 +1414,8 @@ int usb_gadget_probe_driver(struct usb_gadget_driver *driver)
|
||||
}
|
||||
|
||||
mutex_unlock(&udc_lock);
|
||||
if (ret)
|
||||
pr_warn("udc-core: couldn't find an available UDC or it's busy\n");
|
||||
return ret;
|
||||
found:
|
||||
ret = udc_bind_to_driver(udc, driver);
|
||||
|
Loading…
Reference in New Issue
Block a user