ravb: Add SET_RUNTIME_PM_OPS macro
authorKazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Sun, 29 May 2016 20:25:43 +0000 (05:25 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Jun 2016 23:00:45 +0000 (16:00 -0700)
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>
drivers/net/ethernet/renesas/ravb_main.c

index 1ceadbfe85727930d9286249b8145b2317108d44..aa82131a7608d5b0174956a08d5a3eb6fa7b96ef 100644 (file)
@@ -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)