usb: dwc3: core: make sure evt->lpos is correctly initialized
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Fri, 27 Apr 2012 11:28:02 +0000 (14:28 +0300)
committerFelipe Balbi <balbi@ti.com>
Sun, 3 Jun 2012 20:08:24 +0000 (23:08 +0300)
commit7acd85e0eb2ed300edf123178445237059b35fb9
tree1afee16530d6e70786f78c97e84c7571255bec15
parent802fde983e8a3391e059bd41fc272993ae642816
usb: dwc3: core: make sure evt->lpos is correctly initialized

The same event buffers will be reused when coming
out of hibernation, so we must reinitialize them
properly to avoid any mistakes.

While at that, also take dwc3_event_buffers_setup()
out of __devinit section.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c