diff options
author | Daniel Mack <zonque@gmail.com> | 2013-09-30 23:02:07 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-10-02 17:21:23 +0400 |
commit | a49be8f231ee0815d149d6d6c23dcc56a6f68410 (patch) | |
tree | eb827ba39f748a0c1000bbcbb78ba8691dda1546 /drivers/usb/musb/am35x.c | |
parent | 78723920a6a57f6284574133d10f3e94b06b5979 (diff) | |
download | linux-a49be8f231ee0815d149d6d6c23dcc56a6f68410.tar.xz |
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/musb/am35x.c')
-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) return 0; } - -static struct dev_pm_ops am35x_pm_ops = { - .suspend = am35x_suspend, - .resume = am35x_resume, -}; - -#define DEV_PM_OPS &am35x_pm_ops -#else -#define DEV_PM_OPS NULL #endif +static SIMPLE_DEV_PM_OPS(am35x_pm_ops, am35x_suspend, am35x_resume); + static struct platform_driver am35x_driver = { .probe = am35x_probe, .remove = am35x_remove, .driver = { .name = "musb-am35x", - .pm = DEV_PM_OPS, + .pm = &am35x_pm_ops, }, }; |