aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/am35x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/musb/am35x.c')
-rw-r--r--drivers/usb/musb/am35x.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c
index 790b22b296b1..ca45b39db5b9 100644
--- a/drivers/usb/musb/am35x.c
+++ b/drivers/usb/musb/am35x.c
@@ -599,23 +599,16 @@ static int am35x_resume(struct device *dev)
599 599
600 return 0; 600 return 0;
601} 601}
602
603static struct dev_pm_ops am35x_pm_ops = {
604 .suspend = am35x_suspend,
605 .resume = am35x_resume,
606};
607
608#define DEV_PM_OPS &am35x_pm_ops
609#else
610#define DEV_PM_OPS NULL
611#endif 602#endif
612 603
604static SIMPLE_DEV_PM_OPS(am35x_pm_ops, am35x_suspend, am35x_resume);
605
613static struct platform_driver am35x_driver = { 606static struct platform_driver am35x_driver = {
614 .probe = am35x_probe, 607 .probe = am35x_probe,
615 .remove = am35x_remove, 608 .remove = am35x_remove,
616 .driver = { 609 .driver = {
617 .name = "musb-am35x", 610 .name = "musb-am35x",
618 .pm = DEV_PM_OPS, 611 .pm = &am35x_pm_ops,
619 }, 612 },
620}; 613};
621 614