sh_eth: use SET_RUNTIME_PM_OPS()
authorMikhail Ulyanov <mikhail.ulyanov@cogentembedded.com>
Wed, 21 Jan 2015 22:18:44 +0000 (01:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jan 2015 23:26:41 +0000 (15:26 -0800)
Use SET_RUNTIME_PM_OPS() macro to initialize the runtime PM method pointers in
the 'struct dev_pm_ops'.

Signed-off-by: Mikhail Ulyanov <mikhail.ulyanov@cogentembedded.com>
[Sergei: renamed, added the changelog.]
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c

index 167737fa59de48d632a82d70d55734a25f970de1..96219de153e1509a2332ac218163dcadec6e19eb 100644 (file)
@@ -2960,8 +2960,7 @@ static int sh_eth_runtime_nop(struct device *dev)
 }
 
 static const struct dev_pm_ops sh_eth_dev_pm_ops = {
-       .runtime_suspend = sh_eth_runtime_nop,
-       .runtime_resume = sh_eth_runtime_nop,
+       SET_RUNTIME_PM_OPS(sh_eth_runtime_nop, sh_eth_runtime_nop, NULL)
 };
 #define SH_ETH_PM_OPS (&sh_eth_dev_pm_ops)
 #else