aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2024-02-21 15:44:51 +0000
committerBjorn Andersson <[email protected]>2024-03-04 03:54:47 +0000
commit26a526c25606495e7442feeea53061f81eca22be (patch)
treef53fd946ea052fca015548075b70e32f40c3257b /drivers/cdx/controller/cdx_controller.c
parentdt-bindings: soc: qcom: qcom,saw2: add msm8226 l2 compatible (diff)
downloadkernel-26a526c25606495e7442feeea53061f81eca22be.tar.gz
kernel-26a526c25606495e7442feeea53061f81eca22be.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions