From 631b4dba043a0eb8c0e187353e8fb00b86c56e39 Mon Sep 17 00:00:00 2001 From: Randy Dunlap Date: Fri, 25 Dec 2020 10:50:04 -0800 Subject: [PATCH] UPSTREAM: regulator: qcom-rpmh: fix build after QCOM_COMMAND_DB is tristate Restrict REGULATOR_QCOM_RPMH to QCOM_COMMAND_DB it the latter is enabled. Fixes this build error: microblaze-linux-ld: drivers/regulator/qcom-rpmh-regulator.o: in function `rpmh_regulator_probe': (.text+0x354): undefined reference to `cmd_db_read_addr' Fixes: 778279f4f5e4 ("soc: qcom: cmd-db: allow loading as a module") Reported-by: kernel test robot Signed-off-by: Randy Dunlap Cc: Lina Iyer Cc: Liam Girdwood Cc: Mark Brown Reviewed-by: Lina Iyer Link: https://lore.kernel.org/r/20201225185004.20747-1-rdunlap@infradead.org Signed-off-by: Mark Brown (cherry picked from commit ac6b559d818981406e587f4784777e9112d553f4) Bug: 187129171 Signed-off-by: Connor O'Brien Change-Id: Ic3d87283b9181134416c7c46d2bbc6ed33c7f68a --- drivers/regulator/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index 5617c56fbe9b..e16967d9fbe9 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -853,6 +853,7 @@ config REGULATOR_QCOM_RPM config REGULATOR_QCOM_RPMH tristate "Qualcomm Technologies, Inc. RPMh regulator driver" depends on QCOM_RPMH || COMPILE_TEST + depends on QCOM_COMMAND_DB || !QCOM_COMMAND_DB help This driver supports control of PMIC regulators via the RPMh hardware block found on Qualcomm Technologies Inc. SoCs. RPMh regulator