diff options
author | Paul Cercueil <paul@crapouillou.net> | 2022-11-29 19:19:36 +0000 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2023-01-26 15:55:39 +0100 |
commit | 900cd8f065de8d867bc436c1ba05873dc893f2cb (patch) | |
tree | 5f01b610207ba0063c34e1dbc18b607929734a3e /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
parent | 584f13e75356936736930c501bce2db3616fb70e (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 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions