summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/renesas
diff options
context:
space:
mode:
authorKazuya Mizuguchi2016-05-29 22:25:43 +0200
committerDavid S. Miller2016-06-02 01:00:45 +0200
commit524c6f691b99065577b245b250efe93fb0cda5c4 (patch)
treef29f379b52af719843842ed26299905080326177 /drivers/net/ethernet/renesas
parentravb: Add ESF in RCR for enabling separation filter (diff)
downloadkernel-qcow2-linux-524c6f691b99065577b245b250efe93fb0cda5c4.tar.gz
kernel-qcow2-linux-524c6f691b99065577b245b250efe93fb0cda5c4.tar.xz
kernel-qcow2-linux-524c6f691b99065577b245b250efe93fb0cda5c4.zip
ravb: Add SET_RUNTIME_PM_OPS macro
Use SET_RUNTIME_PM_OPS macro instead of assigning a member of dev_pm_ops directly. Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas')
-rw-r--r--drivers/net/ethernet/renesas/ravb_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c
index 1ceadbfe8572..aa82131a7608 100644
--- a/drivers/net/ethernet/renesas/ravb_main.c
+++ b/drivers/net/ethernet/renesas/ravb_main.c
@@ -2112,8 +2112,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)