usb: gadget: udc: core: Warn about failed to find udc
authorDejin Zheng <zhengdejin5@gmail.com>
Sat, 4 Jan 2020 13:27:40 +0000 (21:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2020 09:39:21 +0000 (10:39 +0100)
commit1d039a80613dd8b8d95e181f918db5004bd5cc48
tree92bd5cdc9272f8cd9ea16ca98608a82b8cb1c882
parent463f67aec2837f981b0a0ce8617721ff59685c00
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>
drivers/usb/gadget/udc/core.c