diff options
author | Felipe Balbi <balbi@ti.com> | 2014-11-07 10:06:04 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-10 18:19:34 -0500 |
commit | 8b9ca2767b2d1ea405287e530da3a7b234120b95 (patch) | |
tree | bfb1f9ca56778cd5048e8b972b3d752e3bfab3b2 | |
parent | 004f7d457ef57d46ddf5f8380aa169214c166fca (diff) |
phy: twl4030: Fix build breakage
commit e47d925 (usb: move the OTG state
from the USB PHY to the OTG structure) moved
the OTG state field from struct usb_phy to
struct usb_otg but, even though I fixed many
other build breakages, I still missed one
on phy-twl4030-usb.c.
Fix the build breakage now.
While at that, also a build warning introduced
by the same commit.
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-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 | ||