diff options
-rw-r--r-- | drivers/phy/phy-twl4030-usb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/phy/phy-twl4030-usb.c b/drivers/phy/phy-twl4030-usb.c index 7b04befd5271..e2698d29f436 100644 --- a/drivers/phy/phy-twl4030-usb.c +++ b/drivers/phy/phy-twl4030-usb.c | |||
@@ -606,7 +606,7 @@ static int twl4030_set_peripheral(struct usb_otg *otg, | |||
606 | 606 | ||
607 | otg->gadget = gadget; | 607 | otg->gadget = gadget; |
608 | if (!gadget) | 608 | if (!gadget) |
609 | otg->phy->state = OTG_STATE_UNDEFINED; | 609 | otg->state = OTG_STATE_UNDEFINED; |
610 | 610 | ||
611 | return 0; | 611 | return 0; |
612 | } | 612 | } |
@@ -618,7 +618,7 @@ static int twl4030_set_host(struct usb_otg *otg, struct usb_bus *host) | |||
618 | 618 | ||
619 | otg->host = host; | 619 | otg->host = host; |
620 | if (!host) | 620 | if (!host) |
621 | otg->phy->state = OTG_STATE_UNDEFINED; | 621 | otg->state = OTG_STATE_UNDEFINED; |
622 | 622 | ||
623 | return 0; | 623 | return 0; |
624 | } | 624 | } |
@@ -676,7 +676,7 @@ static int twl4030_usb_probe(struct platform_device *pdev) | |||
676 | twl->phy.otg = otg; | 676 | twl->phy.otg = otg; |
677 | twl->phy.type = USB_PHY_TYPE_USB2; | 677 | twl->phy.type = USB_PHY_TYPE_USB2; |
678 | 678 | ||
679 | otg->phy = &twl->phy; | 679 | otg->usb_phy = &twl->phy; |
680 | otg->set_host = twl4030_set_host; | 680 | otg->set_host = twl4030_set_host; |
681 | otg->set_peripheral = twl4030_set_peripheral; | 681 | otg->set_peripheral = twl4030_set_peripheral; |
682 | 682 | ||