Commit 0967313b authored by Daniel Mack's avatar Daniel Mack Committed by Felipe Balbi

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: default avatarDaniel Mack <zonque@gmail.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent a49be8f2
...@@ -561,23 +561,16 @@ static int bfin_resume(struct device *dev) ...@@ -561,23 +561,16 @@ static int bfin_resume(struct device *dev)
return 0; return 0;
} }
static struct dev_pm_ops bfin_pm_ops = {
.suspend = bfin_suspend,
.resume = bfin_resume,
};
#define DEV_PM_OPS &bfin_pm_ops
#else
#define DEV_PM_OPS NULL
#endif #endif
static SIMPLE_DEV_PM_OPS(bfin_pm_ops, bfin_suspend, bfin_resume);
static struct platform_driver bfin_driver = { static struct platform_driver bfin_driver = {
.probe = bfin_probe, .probe = bfin_probe,
.remove = __exit_p(bfin_remove), .remove = __exit_p(bfin_remove),
.driver = { .driver = {
.name = "musb-blackfin", .name = "musb-blackfin",
.pm = DEV_PM_OPS, .pm = &bfin_pm_ops,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment