diff options
author | Arnd Bergmann <arnd@arndb.de> | 2024-02-21 16:44:51 +0100 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2024-03-03 19:54:47 -0800 |
commit | 26a526c25606495e7442feeea53061f81eca22be (patch) | |
tree | f53fd946ea052fca015548075b70e32f40c3257b /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | aa05f47474c02d38d88c32c633a551911c6fdc40 (diff) |
soc: qcom: spm: fix building with CONFIG_REGULATOR=n
The newly added code causes a build failure when -Werror is set:
drivers/soc/qcom/spm.c:388:12: error: 'spm_get_cpu' defined but not used [-Werror=unused-function]
Remove the #ifdef and instead use an IS_ENABLED() check that lets the
compiler perform dead code elimination instead of the preprocessor.
Fixes: 6496dba142f4 ("soc: qcom: spm: add support for voltage regulator")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240221154457.2007420-1-arnd@kernel.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions