提交 b89b815c 编写于 作者: N Niklas Söderlund 提交者: David S. Miller

ravb: use proper names for suspend/resume functions

The patch 'ravb: add sleep PM suspend/resume support' used incorrect
function names containing 'runtime' for the suspend and resume
functions.
Reported-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Acked-by: NSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 9c706a49
...@@ -2104,7 +2104,7 @@ static int ravb_remove(struct platform_device *pdev) ...@@ -2104,7 +2104,7 @@ static int ravb_remove(struct platform_device *pdev)
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM
static int ravb_runtime_suspend(struct device *dev) static int ravb_suspend(struct device *dev)
{ {
struct net_device *ndev = dev_get_drvdata(dev); struct net_device *ndev = dev_get_drvdata(dev);
int ret = 0; int ret = 0;
...@@ -2117,7 +2117,7 @@ static int ravb_runtime_suspend(struct device *dev) ...@@ -2117,7 +2117,7 @@ static int ravb_runtime_suspend(struct device *dev)
return ret; return ret;
} }
static int ravb_runtime_resume(struct device *dev) static int ravb_resume(struct device *dev)
{ {
struct net_device *ndev = dev_get_drvdata(dev); struct net_device *ndev = dev_get_drvdata(dev);
struct ravb_private *priv = netdev_priv(ndev); struct ravb_private *priv = netdev_priv(ndev);
...@@ -2165,7 +2165,7 @@ static int ravb_runtime_nop(struct device *dev) ...@@ -2165,7 +2165,7 @@ static int ravb_runtime_nop(struct device *dev)
} }
static const struct dev_pm_ops ravb_dev_pm_ops = { static const struct dev_pm_ops ravb_dev_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(ravb_runtime_suspend, ravb_runtime_resume) SET_SYSTEM_SLEEP_PM_OPS(ravb_suspend, ravb_resume)
SET_RUNTIME_PM_OPS(ravb_runtime_nop, ravb_runtime_nop, NULL) SET_RUNTIME_PM_OPS(ravb_runtime_nop, ravb_runtime_nop, NULL)
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册