summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/m66592-udc.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-11-06 09:28:00 +0300
committerFelipe Balbi <balbi@ti.com>2014-11-11 02:19:36 +0300
commit373ef692e00624b426271a22b8dadb92a46897ef (patch)
tree44f06f1f77e4ba1fa4fd19a8a4270535820f9602 /drivers/usb/gadget/udc/m66592-udc.c
parent90834d3ecb952f8f0ab8a5687e58c472935a4e70 (diff)
downloadlinux-373ef692e00624b426271a22b8dadb92a46897ef.tar.xz
usb: gadget: m66592-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/m66592-udc.c')
-rw-r--r--drivers/usb/gadget/udc/m66592-udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/m66592-udc.c b/drivers/usb/gadget/udc/m66592-udc.c
index 311ec5f1cbfe..ef3f73dd9099 100644
--- a/drivers/usb/gadget/udc/m66592-udc.c
+++ b/drivers/usb/gadget/udc/m66592-udc.c
@@ -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)