From: Mikhail Ulyanov Date: Wed, 21 Jan 2015 22:18:44 +0000 (+0300) Subject: sh_eth: use SET_RUNTIME_PM_OPS() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e7d7e89846d53e27d6e48a746c5c69e69c22aaaa;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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: Mikhail Ulyanov [Sergei: renamed, added the changelog.] Signed-off-by: Sergei Shtylyov Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 167737fa59de..96219de153e1 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -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