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

index 311ec5f..ef3f73d 100644 (file)
@@ -1142,7 +1142,7 @@ static void irq_device_state(struct m66592 *m66592)
        m66592_write(m66592, ~M66592_DVST, M66592_INTSTS0);
 
        if (dvsq == M66592_DS_DFLT) {   /* bus reset */
-               m66592->driver->disconnect(&m66592->gadget);
+               usb_gadget_udc_reset(&m66592->gadget, m66592->driver);
                m66592_update_usb_speed(m66592);
        }
        if (m66592->old_dvsq == M66592_DS_CNFG && dvsq != M66592_DS_CNFG)