Commit e7d7e898 authored by Mikhail Ulyanov's avatar Mikhail Ulyanov Committed by David S. Miller

sh_eth: use SET_RUNTIME_PM_OPS()

Use SET_RUNTIME_PM_OPS() macro to initialize the runtime PM method pointers in
the 'struct dev_pm_ops'.
Signed-off-by: default avatarMikhail Ulyanov <mikhail.ulyanov@cogentembedded.com>
[Sergei: renamed, added the changelog.]
Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 38979574
...@@ -2960,8 +2960,7 @@ static int sh_eth_runtime_nop(struct device *dev) ...@@ -2960,8 +2960,7 @@ static int sh_eth_runtime_nop(struct device *dev)
} }
static const struct dev_pm_ops sh_eth_dev_pm_ops = { static const struct dev_pm_ops sh_eth_dev_pm_ops = {
.runtime_suspend = sh_eth_runtime_nop, SET_RUNTIME_PM_OPS(sh_eth_runtime_nop, sh_eth_runtime_nop, NULL)
.runtime_resume = sh_eth_runtime_nop,
}; };
#define SH_ETH_PM_OPS (&sh_eth_dev_pm_ops) #define SH_ETH_PM_OPS (&sh_eth_dev_pm_ops)
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment