diff options
| author | 2022-11-29 19:19:36 +0000 | |
|---|---|---|
| committer | 2023-01-26 15:55:39 +0100 | |
| commit | 900cd8f065de8d867bc436c1ba05873dc893f2cb (patch) | |
| tree | 5f01b610207ba0063c34e1dbc18b607929734a3e /rust/kernel/ssh:/git@git.zx2c4.com | |
| parent | drm/tegra: Remove redundant null checks before kfree (diff) | |
drm/tegra: Remove #ifdef guards for PM related functions
Use the RUNTIME_PM_OPS() and pm_ptr() macros to handle the
.runtime_suspend/.runtime_resume callbacks.
These macros allow the suspend and resume functions to be automatically
dropped by the compiler when CONFIG_PM is disabled, without having
to use #ifdef guards.
This has the advantage of always compiling these functions in,
independently of any Kconfig option. Thanks to that, bugs and other
regressions are subsequently easier to catch.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
