aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/musb/blackfin.c13
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
565static 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
566static SIMPLE_DEV_PM_OPS(bfin_pm_ops, bfin_suspend, bfin_resume);
567
575static struct platform_driver bfin_driver = { 568static 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