From: Peter Chen Date: Thu, 6 Nov 2014 06:28:06 +0000 (+0800) Subject: usb: gadget: amd5536udc: use udc-core's reset notifier X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=107d13c76f46a3b96decac828ac09a1a87e07014;p=openwrt%2Fstaging%2Fblogic.git usb: gadget: amd5536udc: use udc-core's reset notifier Replace usb_gadget_driver's disconnect with udc-core's reset notifier at bus reset handler. Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/udc/amd5536udc.c b/drivers/usb/gadget/udc/amd5536udc.c index 606b9009861a..de7e5e2ccf1c 100644 --- a/drivers/usb/gadget/udc/amd5536udc.c +++ b/drivers/usb/gadget/udc/amd5536udc.c @@ -2871,7 +2871,7 @@ __acquires(dev->lock) dev->driver->resume(&dev->gadget); dev->sys_suspended = 0; } - dev->driver->disconnect(&dev->gadget); + usb_gadget_udc_reset(&dev->gadget, dev->driver); spin_lock(&dev->lock); /* disable ep0 to empty req queue */