Skip to content

Commit b89b815

Browse files
Niklas Söderlunddavem330
authored andcommitted
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: Sergei Shtylyov <[email protected]> Signed-off-by: Niklas Söderlund <[email protected]> Acked-by: Sergei Shtylyov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9c706a4 commit b89b815

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/ethernet/renesas/ravb_main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,7 @@ static int ravb_remove(struct platform_device *pdev)
21042104
}
21052105

21062106
#ifdef CONFIG_PM
2107-
static int ravb_runtime_suspend(struct device *dev)
2107+
static int ravb_suspend(struct device *dev)
21082108
{
21092109
struct net_device *ndev = dev_get_drvdata(dev);
21102110
int ret = 0;
@@ -2117,7 +2117,7 @@ static int ravb_runtime_suspend(struct device *dev)
21172117
return ret;
21182118
}
21192119

2120-
static int ravb_runtime_resume(struct device *dev)
2120+
static int ravb_resume(struct device *dev)
21212121
{
21222122
struct net_device *ndev = dev_get_drvdata(dev);
21232123
struct ravb_private *priv = netdev_priv(ndev);
@@ -2165,7 +2165,7 @@ static int ravb_runtime_nop(struct device *dev)
21652165
}
21662166

21672167
static const struct dev_pm_ops ravb_dev_pm_ops = {
2168-
SET_SYSTEM_SLEEP_PM_OPS(ravb_runtime_suspend, ravb_runtime_resume)
2168+
SET_SYSTEM_SLEEP_PM_OPS(ravb_suspend, ravb_resume)
21692169
SET_RUNTIME_PM_OPS(ravb_runtime_nop, ravb_runtime_nop, NULL)
21702170
};
21712171

0 commit comments

Comments
 (0)