]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/tegra: Remove #ifdef guards for PM related functions
authorPaul Cercueil <paul@crapouillou.net>
Tue, 29 Nov 2022 19:19:36 +0000 (19:19 +0000)
committerThierry Reding <treding@nvidia.com>
Thu, 26 Jan 2023 14:55:39 +0000 (15:55 +0100)
commit900cd8f065de8d867bc436c1ba05873dc893f2cb
tree5f01b610207ba0063c34e1dbc18b607929734a3e
parent584f13e75356936736930c501bce2db3616fb70e
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>
drivers/gpu/drm/tegra/dpaux.c