[U-Boot] [PATCH 18/21] usb: gadget: ether: populate _reset_ callback

Kishon Vijay Abraham I kishon at ti.com
Thu Aug 6 18:16:08 CEST 2015


populate _reset_ callback to the USB ethernet gadget since UDC core
expects every gadget driver to have the reset callback. This shouldn't
be needed once the ethernet gadget driver is adapted to use the
composite driver.

Signed-off-by: Kishon Vijay Abraham I <kishon at ti.com>
---
 drivers/usb/gadget/ether.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index 850ba02..53f4672 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -2505,6 +2505,7 @@ static struct usb_gadget_driver eth_driver = {
 	.unbind		= eth_unbind,
 
 	.setup		= eth_setup,
+	.reset		= eth_disconnect,
 	.disconnect	= eth_disconnect,
 
 	.suspend	= eth_suspend,
-- 
1.7.9.5



More information about the U-Boot mailing list