summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/am35x.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2010-12-02 12:27:35 +0200
committerFelipe Balbi <balbi@ti.com>2010-12-10 10:21:26 +0200
commit496351413a227a6c0ea1a704d3d4c775d413fd08 (patch)
treee688488db9439ba5de6706260f0db4da612cc9d7 /drivers/usb/musb/am35x.c
parentfa56df915d101770a495569473b4c13b1904087b (diff)
downloadblackbird-op-linux-496351413a227a6c0ea1a704d3d4c775d413fd08.tar.gz
blackbird-op-linux-496351413a227a6c0ea1a704d3d4c775d413fd08.zip
usb: musb: drop musb_platform_save/restore_context
... that can be easily folded into the musb_platform_suspend/resume calls. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/am35x.c')
-rw-r--r--drivers/usb/musb/am35x.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c
index e4e571bf9ba7..eacf1e09b495 100644
--- a/drivers/usb/musb/am35x.c
+++ b/drivers/usb/musb/am35x.c
@@ -462,19 +462,19 @@ static int am35x_musb_exit(struct musb *musb)
return 0;
}
-#ifdef CONFIG_PM
-void musb_platform_save_context(struct musb *musb,
- struct musb_context_registers *musb_context)
+static int am35x_musb_suspend(struct musb *musb)
{
phy_off();
+
+ return 0;
}
-void musb_platform_restore_context(struct musb *musb,
- struct musb_context_registers *musb_context)
+static int am35x_musb_resume(struct musb *musb)
{
phy_on();
+
+ return 0;
}
-#endif
/* AM35x supports only 32bit read operation */
void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
@@ -516,6 +516,9 @@ static const struct musb_platform_ops am35x_ops = {
.set_mode = am35x_musb_set_mode,
.try_idle = am35x_musb_try_idle,
+ .suspend = am35x_musb_suspend,
+ .resume = am35x_musb_resume,
+
.set_vbus = am35x_musb_set_vbus,
};
OpenPOWER on IntegriCloud