[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160803135647.23242-2-niklas.soderlund+renesas@ragnatech.se>
Date: Wed, 3 Aug 2016 15:56:46 +0200
From: Niklas Söderlund
<niklas.soderlund+renesas@...natech.se>
To: netdev@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
sergei.shtylyov@...entembedded.com
Cc: davem@...emloft.net, wsa@...-dreams.de,
Niklas Söderlund
<niklas.soderlund+renesas@...natech.se>
Subject: [PATCH 1/2] ravb: use SET_RUNTIME_PM_OPS macro
Use macro to define the runtime PM operations.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@...natech.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
Powered by blists - more mailing lists