Skip to content

Commit 73a30bf

Browse files
Dan CarpenterFelipe Balbi
Dan Carpenter
authored and
Felipe Balbi
committed
usb: dwc3: gadget: cut and paste fixups in suspend/resume
These were cut and paste from the ->disconnect function. Fixes commit 30d577b9bcc4 ('usb: dwc3: gadget: call gadget driver's ->suspend/->resume') Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent d95faae commit 73a30bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/dwc3/gadget.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,7 +2047,7 @@ static void dwc3_disconnect_gadget(struct dwc3 *dwc)
20472047

20482048
static void dwc3_suspend_gadget(struct dwc3 *dwc)
20492049
{
2050-
if (dwc->gadget_driver && dwc->gadget_driver->disconnect) {
2050+
if (dwc->gadget_driver && dwc->gadget_driver->suspend) {
20512051
spin_unlock(&dwc->lock);
20522052
dwc->gadget_driver->suspend(&dwc->gadget);
20532053
spin_lock(&dwc->lock);
@@ -2056,7 +2056,7 @@ static void dwc3_suspend_gadget(struct dwc3 *dwc)
20562056

20572057
static void dwc3_resume_gadget(struct dwc3 *dwc)
20582058
{
2059-
if (dwc->gadget_driver && dwc->gadget_driver->disconnect) {
2059+
if (dwc->gadget_driver && dwc->gadget_driver->resume) {
20602060
spin_unlock(&dwc->lock);
20612061
dwc->gadget_driver->resume(&dwc->gadget);
20622062
spin_lock(&dwc->lock);

0 commit comments

Comments
 (0)