summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-12-19 12:01:52 +0100
committerFelipe Balbi <balbi@ti.com>2013-03-18 10:17:12 +0100
commit14cd592f72ea1ce1a25d7a576a5ed6aa761456bc (patch)
tree7557811ad7c557a2944c23a24da4c387a0881737 /drivers/usb/dwc3/gadget.c
parentusb: gadget: introduce gadget state tracking (diff)
downloadlinux-14cd592f72ea1ce1a25d7a576a5ed6aa761456bc.tar.xz
linux-14cd592f72ea1ce1a25d7a576a5ed6aa761456bc.zip
usb: dwc3: gadget: implement gadget state tracking
make use of the previously introduced gadget->state field. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r--drivers/usb/dwc3/gadget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 742eb8268e9a..2686bf26ccaf 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -2137,7 +2137,7 @@ static void dwc3_gadget_reset_interrupt(struct dwc3 *dwc)
}
/* after reset -> Default State */
- dwc->dev_state = DWC3_DEFAULT_STATE;
+ usb_gadget_set_state(&dwc->gadget, USB_STATE_DEFAULT);
/* Recent versions support automatic phy suspend and don't need this */
if (dwc->revision < DWC3_REVISION_194A) {