diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2013-09-27 02:23:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-27 20:36:58 -0400 |
commit | 3e3101d57c50f9e4fa1da947e4bd0bc5cbab4141 (patch) | |
tree | 59b60562a0cedb4760eb73c3105a9008795b16a0 /drivers/usb/musb/musb_core.h | |
parent | 975d963e6ddcc0f906f53f62f9dc6ee817ea5d88 (diff) |
usb: musb: omap2430: use the new generic PHY framework
Use the generic PHY framework API to get the PHY. The usb_phy_set_resume
and usb_phy_set_suspend is replaced with power_on and
power_off to align with the new PHY framework.
musb->xceiv can't be removed as of now because musb core uses xceiv.state and
xceiv.otg. Once there is a separate state machine to handle otg, these can be
moved out of xceiv and then we can start using the generic PHY framework.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb/musb_core.h')
-rw-r--r-- | drivers/usb/musb/musb_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h index 65f3917b4fc5..d408a9962f66 100644 --- a/drivers/usb/musb/musb_core.h +++ b/drivers/usb/musb/musb_core.h | |||
@@ -46,6 +46,7 @@ | |||
46 | #include <linux/usb.h> | 46 | #include <linux/usb.h> |
47 | #include <linux/usb/otg.h> | 47 | #include <linux/usb/otg.h> |
48 | #include <linux/usb/musb.h> | 48 | #include <linux/usb/musb.h> |
49 | #include <linux/phy/phy.h> | ||
49 | 50 | ||
50 | struct musb; | 51 | struct musb; |
51 | struct musb_hw_ep; | 52 | struct musb_hw_ep; |
@@ -341,6 +342,7 @@ struct musb { | |||
341 | u16 int_tx; | 342 | u16 int_tx; |
342 | 343 | ||
343 | struct usb_phy *xceiv; | 344 | struct usb_phy *xceiv; |
345 | struct phy *phy; | ||
344 | 346 | ||
345 | int nIrq; | 347 | int nIrq; |
346 | unsigned irq_wake:1; | 348 | unsigned irq_wake:1; |