linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] usb: musb: am35x: use SIMPLE_DEV_PM_OPS
@ 2013-09-22 11:46 Daniel Mack
  2013-09-22 11:46 ` [PATCH 2/4] usb: musb: blackfin: " Daniel Mack
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Daniel Mack @ 2013-09-22 11:46 UTC (permalink / raw)
  To: linux-ubs; +Cc: balbi, linux-omap, gregkh, Daniel Mack

This makes am35x_pm_ops const.

Also, checkpatch.pl complains about the use of DEV_PM_OPS:

  ERROR: Macros with complex values should be enclosed in parenthesis

Signed-off-by: Daniel Mack <zonque@gmail.com>
---
 drivers/usb/musb/am35x.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c
index 5c310c6..df32a29 100644
--- a/drivers/usb/musb/am35x.c
+++ b/drivers/usb/musb/am35x.c
@@ -616,12 +616,9 @@ static int am35x_resume(struct device *dev)
 	return 0;
 }
 
-static struct dev_pm_ops am35x_pm_ops = {
-	.suspend	= am35x_suspend,
-	.resume		= am35x_resume,
-};
+static SIMPLE_DEV_PM_OPS(am35x_pm_ops, am35x_suspend, am35x_resume);
 
-#define DEV_PM_OPS	&am35x_pm_ops
+#define DEV_PM_OPS	(&am35x_pm_ops)
 #else
 #define DEV_PM_OPS	NULL
 #endif
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-10-02  8:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-22 11:46 [PATCH 1/4] usb: musb: am35x: use SIMPLE_DEV_PM_OPS Daniel Mack
2013-09-22 11:46 ` [PATCH 2/4] usb: musb: blackfin: " Daniel Mack
2013-09-22 11:47 ` [PATCH 3/4] usb: musb: omap2430: " Daniel Mack
2013-09-22 11:47 ` [PATCH 4/4] usb: musb: ux500: " Daniel Mack
2013-09-23 21:20 ` [PATCH 1/4] usb: musb: am35x: " Felipe Balbi
2013-09-24  6:57   ` Daniel Mack
2013-09-25 13:48     ` Felipe Balbi
2013-09-27 18:47       ` Daniel Mack
2013-09-30 16:25         ` Felipe Balbi
2013-09-30 16:56           ` Daniel Mack
2013-10-02  8:10           ` Daniel Mack

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).