]> git.sur5r.net Git - u-boot/commitdiff
usb: gadget: ether: populate _reset_ callback
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 19 Aug 2015 08:19:48 +0000 (13:49 +0530)
committerMarek Vasut <marex@denx.de>
Wed, 19 Aug 2015 20:30:31 +0000 (22:30 +0200)
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@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/usb/gadget/ether.c

index 850ba029ab7df5ec5752ca43bcb3b9c46d6186dd..53f4672291f3d83a32cae43f4bd99caedba6c502 100644 (file)
@@ -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,