diff options
author | Paul Cercueil <paul@crapouillou.net> | 2022-11-29 19:19:42 +0000 |
---|---|---|
committer | Paul Cercueil <paul@crapouillou.net> | 2022-12-12 13:07:03 +0000 |
commit | 196c92263f5525a644e8e6a0c9df5cc2da9e2b16 (patch) | |
tree | 28851b0ea8d615c84ba8ec68ac215da91e25173f /drivers/gpu/drm/exynos/exynos_dp.c | |
parent | 49eafb200f1d0415d9302f31855166c731b5297d (diff) | |
download | linux-196c92263f5525a644e8e6a0c9df5cc2da9e2b16.tar.gz |
drm/i915/gt: Remove #ifdef guards for PM related functions
Instead of defining two versions of intel_sysfs_rc6_init(), one for each
value of CONFIG_PM, add a check on !IS_ENABLED(CONFIG_PM) early in the
function. This will allow the compiler to automatically drop the dead
code 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>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221129191942.138244-13-paul@crapouillou.net
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_dp.c')
0 files changed, 0 insertions, 0 deletions