diff options
author | Daniel Mack <zonque@gmail.com> | 2013-09-30 15:02:07 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-10-02 09:21:23 -0400 |
commit | a49be8f231ee0815d149d6d6c23dcc56a6f68410 (patch) | |
tree | eb827ba39f748a0c1000bbcbb78ba8691dda1546 /drivers/usb | |
parent | 78723920a6a57f6284574133d10f3e94b06b5979 (diff) |
usb: musb: am35x: use SIMPLE_DEV_PM_OPS
This makes am35x_pm_ops const and will stub the struct out in case
CONFIG_PM_SLEEP is not set.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/musb/am35x.c | 13 |
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 | |||
603 | static 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 | ||
604 | static SIMPLE_DEV_PM_OPS(am35x_pm_ops, am35x_suspend, am35x_resume); | ||
605 | |||
613 | static struct platform_driver am35x_driver = { | 606 | static 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 | ||