diff options
author | Daniel Mack <zonque@gmail.com> | 2013-09-30 15:02:08 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-10-02 09:21:55 -0400 |
commit | 0967313b6fe14f34d87b1ef278f7771ed8900eb1 (patch) | |
tree | 56da49b89d10b6895b5cd771622b2e0908591751 /drivers/usb/musb/blackfin.c | |
parent | a49be8f231ee0815d149d6d6c23dcc56a6f68410 (diff) |
usb: musb: blackfin: use SIMPLE_DEV_PM_OPS
This makes bfin_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/musb/blackfin.c')
-rw-r--r-- | drivers/usb/musb/blackfin.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c index 72e2056b6082..d9692f78e227 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c | |||
@@ -561,23 +561,16 @@ static int bfin_resume(struct device *dev) | |||
561 | 561 | ||
562 | return 0; | 562 | return 0; |
563 | } | 563 | } |
564 | |||
565 | static struct dev_pm_ops bfin_pm_ops = { | ||
566 | .suspend = bfin_suspend, | ||
567 | .resume = bfin_resume, | ||
568 | }; | ||
569 | |||
570 | #define DEV_PM_OPS &bfin_pm_ops | ||
571 | #else | ||
572 | #define DEV_PM_OPS NULL | ||
573 | #endif | 564 | #endif |
574 | 565 | ||
566 | static SIMPLE_DEV_PM_OPS(bfin_pm_ops, bfin_suspend, bfin_resume); | ||
567 | |||
575 | static struct platform_driver bfin_driver = { | 568 | static struct platform_driver bfin_driver = { |
576 | .probe = bfin_probe, | 569 | .probe = bfin_probe, |
577 | .remove = __exit_p(bfin_remove), | 570 | .remove = __exit_p(bfin_remove), |
578 | .driver = { | 571 | .driver = { |
579 | .name = "musb-blackfin", | 572 | .name = "musb-blackfin", |
580 | .pm = DEV_PM_OPS, | 573 | .pm = &bfin_pm_ops, |
581 | }, | 574 | }, |
582 | }; | 575 | }; |
583 | 576 | ||