Skip to contentSkip to conversation

usb: musb: am35x: use SIMPLE_DEV_PM_OPS

PATCH RESEND New Daniel Mack 1 participant 3 messages Sep 30, 2013 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 5c310c6..7f1e990 100644
@@ -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,
-};
#2 lore raw

PATCH RESEND v2 2/3 usb: musb: blackfin: use SIMPLE_DEV_PM_OPS

In reply to a message not in the archive

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
index 72e2056..d9692f7 100644
@@ -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,
-};
#3 lore raw

PATCH RESEND v2 3/3 usb: musb: ux500: use SIMPLE_DEV_PM_OPS

In reply to a message not in the archive

This 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
index 59256b1..f483d19 100644
@@ -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,
-};