diff options
author | Anton Tikhomirov <av.tikhomirov@samsung.com> | 2013-10-02 23:42:04 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-10-04 10:44:46 -0400 |
commit | 425d710172cee47ed5e18eefd3308d88643de76d (patch) | |
tree | 504560707c915c657e1098addaec43cfb0fade2b /drivers/usb/phy/phy-fsm-usb.c | |
parent | 737cc66eac350d674c72a3f903541644098ec47e (diff) |
usb: phy: Add and use missed helper functions
This patch implements missed helper functions for start_gadget() and
start_host() OTG FSM callbacks.
Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy/phy-fsm-usb.c')
-rw-r--r-- | drivers/usb/phy/phy-fsm-usb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/phy/phy-fsm-usb.c b/drivers/usb/phy/phy-fsm-usb.c index 7f4596606e18..78984591ee74 100644 --- a/drivers/usb/phy/phy-fsm-usb.c +++ b/drivers/usb/phy/phy-fsm-usb.c | |||
@@ -41,17 +41,17 @@ static int otg_set_protocol(struct otg_fsm *fsm, int protocol) | |||
41 | fsm->protocol, protocol); | 41 | fsm->protocol, protocol); |
42 | /* stop old protocol */ | 42 | /* stop old protocol */ |
43 | if (fsm->protocol == PROTO_HOST) | 43 | if (fsm->protocol == PROTO_HOST) |
44 | ret = fsm->ops->start_host(fsm, 0); | 44 | ret = otg_start_host(fsm, 0); |
45 | else if (fsm->protocol == PROTO_GADGET) | 45 | else if (fsm->protocol == PROTO_GADGET) |
46 | ret = fsm->ops->start_gadget(fsm, 0); | 46 | ret = otg_start_gadget(fsm, 0); |
47 | if (ret) | 47 | if (ret) |
48 | return ret; | 48 | return ret; |
49 | 49 | ||
50 | /* start new protocol */ | 50 | /* start new protocol */ |
51 | if (protocol == PROTO_HOST) | 51 | if (protocol == PROTO_HOST) |
52 | ret = fsm->ops->start_host(fsm, 1); | 52 | ret = otg_start_host(fsm, 1); |
53 | else if (protocol == PROTO_GADGET) | 53 | else if (protocol == PROTO_GADGET) |
54 | ret = fsm->ops->start_gadget(fsm, 1); | 54 | ret = otg_start_gadget(fsm, 1); |
55 | if (ret) | 55 | if (ret) |
56 | return ret; | 56 | return ret; |
57 | 57 | ||