diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-11-06 07:28:07 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-11 00:19:38 +0100 |
commit | 5443a7915f8ac529fb868ba26992046f63402760 (patch) | |
tree | 3c21491addad4bd6d04d286c1f64113b6bc5f392 /drivers/usb/gadget/udc/r8a66597-udc.c | |
parent | usb: gadget: amd5536udc: use udc-core's reset notifier (diff) | |
download | linux-5443a7915f8ac529fb868ba26992046f63402760.tar.xz linux-5443a7915f8ac529fb868ba26992046f63402760.zip |
usb: gadget: r8a66597-udc: 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 <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/udc/r8a66597-udc.c')
-rw-r--r-- | drivers/usb/gadget/udc/r8a66597-udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/r8a66597-udc.c b/drivers/usb/gadget/udc/r8a66597-udc.c index be31b57a8ba1..06870da0b988 100644 --- a/drivers/usb/gadget/udc/r8a66597-udc.c +++ b/drivers/usb/gadget/udc/r8a66597-udc.c @@ -1345,7 +1345,7 @@ static void irq_device_state(struct r8a66597 *r8a66597) if (dvsq == DS_DFLT) { /* bus reset */ spin_unlock(&r8a66597->lock); - r8a66597->driver->disconnect(&r8a66597->gadget); + usb_gadget_udc_reset(&r8a66597->gadget, r8a66597->driver); spin_lock(&r8a66597->lock); r8a66597_update_usb_speed(r8a66597); } |