diff options
Diffstat (limited to 'drivers/usb/musb/musb_core.c')
-rw-r--r-- | drivers/usb/musb/musb_core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 239ad0b1ceb6..07576907e2c6 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -438,7 +438,6 @@ void musb_hnp_stop(struct musb *musb) | |||
438 | static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb, | 438 | static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb, |
439 | u8 devctl) | 439 | u8 devctl) |
440 | { | 440 | { |
441 | struct usb_otg *otg = musb->xceiv->otg; | ||
442 | irqreturn_t handled = IRQ_NONE; | 441 | irqreturn_t handled = IRQ_NONE; |
443 | 442 | ||
444 | dev_dbg(musb->controller, "<== DevCtl=%02x, int_usb=0x%x\n", devctl, | 443 | dev_dbg(musb->controller, "<== DevCtl=%02x, int_usb=0x%x\n", devctl, |
@@ -656,7 +655,7 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb, | |||
656 | break; | 655 | break; |
657 | case OTG_STATE_B_PERIPHERAL: | 656 | case OTG_STATE_B_PERIPHERAL: |
658 | musb_g_suspend(musb); | 657 | musb_g_suspend(musb); |
659 | musb->is_active = otg->gadget->b_hnp_enable; | 658 | musb->is_active = musb->g.b_hnp_enable; |
660 | if (musb->is_active) { | 659 | if (musb->is_active) { |
661 | musb->xceiv->state = OTG_STATE_B_WAIT_ACON; | 660 | musb->xceiv->state = OTG_STATE_B_WAIT_ACON; |
662 | dev_dbg(musb->controller, "HNP: Setting timer for b_ase0_brst\n"); | 661 | dev_dbg(musb->controller, "HNP: Setting timer for b_ase0_brst\n"); |
@@ -672,7 +671,7 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb, | |||
672 | break; | 671 | break; |
673 | case OTG_STATE_A_HOST: | 672 | case OTG_STATE_A_HOST: |
674 | musb->xceiv->state = OTG_STATE_A_SUSPEND; | 673 | musb->xceiv->state = OTG_STATE_A_SUSPEND; |
675 | musb->is_active = otg->host->b_hnp_enable; | 674 | musb->is_active = musb->hcd->self.b_hnp_enable; |
676 | break; | 675 | break; |
677 | case OTG_STATE_B_HOST: | 676 | case OTG_STATE_B_HOST: |
678 | /* Transition to B_PERIPHERAL, see 6.8.2.6 p 44 */ | 677 | /* Transition to B_PERIPHERAL, see 6.8.2.6 p 44 */ |