All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
To: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
	sergei.shtylyov@cogentembedded.com
Cc: davem@davemloft.net, wsa@the-dreams.de,
	"Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
Subject: [PATCH 1/2] ravb: use SET_RUNTIME_PM_OPS macro
Date: Wed,  3 Aug 2016 15:56:46 +0200	[thread overview]
Message-ID: <20160803135647.23242-2-niklas.soderlund+renesas@ragnatech.se> (raw)
In-Reply-To: <20160803135647.23242-1-niklas.soderlund+renesas@ragnatech.se>

Use macro to define the runtime PM operations.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
---
 drivers/net/ethernet/renesas/ravb_main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c
index 867caf6..da8da86 100644
--- a/drivers/net/ethernet/renesas/ravb_main.c
+++ b/drivers/net/ethernet/renesas/ravb_main.c
@@ -2111,8 +2111,7 @@ static int ravb_runtime_nop(struct device *dev)
 }
 
 static const struct dev_pm_ops ravb_dev_pm_ops = {
-	.runtime_suspend = ravb_runtime_nop,
-	.runtime_resume = ravb_runtime_nop,
+	SET_RUNTIME_PM_OPS(ravb_runtime_nop, ravb_runtime_nop, NULL)
 };
 
 #define RAVB_PM_OPS (&ravb_dev_pm_ops)
-- 
2.9.0

  reply	other threads:[~2016-08-03 14:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-03 13:56 [PATCH 0/2] ravb: add sleep PM suspend/resume support Niklas Söderlund
2016-08-03 13:56 ` Niklas Söderlund [this message]
2016-08-04 13:33   ` [PATCH 1/2] ravb: use SET_RUNTIME_PM_OPS macro Geert Uytterhoeven
2016-08-04 15:28     ` Niklas Söderlund
2016-08-04 15:28       ` Niklas Söderlund
2016-08-03 13:56 ` [PATCH 2/2] ravb: add sleep PM suspend/resume support Niklas Söderlund
2016-08-09 23:16   ` David Miller
2016-08-09 23:16     ` David Miller
2016-08-10 10:47     ` Sergei Shtylyov
2016-08-10 17:43       ` David Miller
2016-08-10 10:40   ` Sergei Shtylyov
2016-08-10 10:58     ` Niklas Söderlund
2016-08-10 10:58       ` Niklas Söderlund

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160803135647.23242-2-niklas.soderlund+renesas@ragnatech.se \
    --to=niklas.soderlund+renesas@ragnatech.se \
    --cc=davem@davemloft.net \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=sergei.shtylyov@cogentembedded.com \
    --cc=wsa@the-dreams.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.