usb: musb: am35x: use SIMPLE_DEV_PM_OPS
Subsystems (2)
PATCH RESEND v2 1/3 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.
---
I'm resending this series because I've just learned that SIMPLE_DEV_PM_OPS will stub itself out in case CONFIG_PM_SLEEP is not set. That makes the the code even smaller.
drivers/usb/musb/am35x.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-)
drivers/usb/musb/am35x.c +0 -5
@@ -615,23 +615,16 @@ static int am35x_resume(struct device *dev)return 0 ; } - -static struct dev_pm_ops am35x_pm_ops = { - .suspend = am35x_suspend, - .resume = am35x_resume, -};
A message that is not in the archive (sent off-list or not yet received): 1380567729-27868-1-git-send-email-zonque-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
PATCH RESEND v2 2/3 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.
--- drivers/usb/musb/blackfin.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-)
drivers/usb/musb/blackfin.c +0 -5
@@ -561,23 +561,16 @@ static int bfin_resume(struct device *dev)return 0 ; } - -static struct dev_pm_ops bfin_pm_ops = { - .suspend = bfin_suspend, - .resume = bfin_resume, -};
PATCH RESEND v2 3/3 usb: musb: ux500: use SIMPLE_DEV_PM_OPS
In reply to a message not in the archiveThis removes the DEV_PM_OPS macro and brings this file in line with the other musb platform drivers.
--- drivers/usb/musb/ux500.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-)
drivers/usb/musb/ux500.c +0 -5
@@ -376,17 +376,10 @@ static int ux500_resume(struct device *dev)return 0 ; } - -static const struct dev_pm_ops ux500_pm_ops = { - .suspend = ux500_suspend, - .resume = ux500_resume, -};