usb: gadget: fsl_qe_udc: use udc-core's reset notifier
authorPeter Chen <peter.chen@freescale.com>
Thu, 6 Nov 2014 06:28:04 +0000 (14:28 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 10 Nov 2014 23:19:37 +0000 (17:19 -0600)
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>
drivers/usb/gadget/udc/fsl_qe_udc.c

index 01f29ef622bc9bffdd34a1b732da7e38d7b7be10..d201f9a89ce3bdb090ad1bb8defb1b68c4b52837 100644 (file)
@@ -1917,7 +1917,7 @@ static int reset_queues(struct qe_udc *udc)
 
        /* report disconnect; the driver is already quiesced */
        spin_unlock(&udc->lock);
-       udc->driver->disconnect(&udc->gadget);
+       usb_gadget_udc_reset(&udc->gadget, udc->driver);
        spin_lock(&udc->lock);
 
        return 0;