mirror of https://github.com/torvalds/linux.git
sh_eth: Remove dummy Runtime PM callbacks
Since commit 63d00be693 ("PM: runtime: Allow unassigned
->runtime_suspend|resume callbacks"), unassigned
.runtime_{suspend,resume}() callbacks are treated the same as dummy
callbacks that just return zero.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://patch.msgid.link/ab2a8bb51eb7d02426f4072c27523c8f41ac1ad4.1756998732.git.geert+renesas@glider.be
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
8c0b9ed240
commit
86e6257192
|
|
@ -3529,21 +3529,8 @@ static int sh_eth_resume(struct device *dev)
|
|||
}
|
||||
#endif
|
||||
|
||||
static int sh_eth_runtime_nop(struct device *dev)
|
||||
{
|
||||
/* Runtime PM callback shared between ->runtime_suspend()
|
||||
* and ->runtime_resume(). Simply returns success.
|
||||
*
|
||||
* This driver re-initializes all registers after
|
||||
* pm_runtime_get_sync() anyway so there is no need
|
||||
* to save and restore registers here.
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct dev_pm_ops sh_eth_dev_pm_ops = {
|
||||
SET_SYSTEM_SLEEP_PM_OPS(sh_eth_suspend, sh_eth_resume)
|
||||
SET_RUNTIME_PM_OPS(sh_eth_runtime_nop, sh_eth_runtime_nop, NULL)
|
||||
};
|
||||
#define SH_ETH_PM_OPS (&sh_eth_dev_pm_ops)
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in New Issue