regulator: REGULATOR_QCOM_REFGEN should depend on ARCH_QCOM

The Qualcomm MMIO-mapped reference voltage regulator is only present on
Qualcomm SoCs.  Hence add a dependency on ARCH_QCOM, to prevent asking
the user about this driver when configuring a kernel without Qualcomm
SoC support.

Fixes: 7cbfbe2379 ("regulator: Introduce Qualcomm REFGEN regulator driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/60938ed138c9331ba3d2891fbd3b3d6644d3fbdc.1690300012.git.geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Geert Uytterhoeven 2023-07-25 17:47:43 +02:00 committed by Mark Brown
parent 269cb04b60
commit 6b677c1ae8
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0

View file

@ -1001,6 +1001,7 @@ config REGULATOR_PWM
config REGULATOR_QCOM_REFGEN
tristate "Qualcomm REFGEN regulator driver"
depends on ARCH_QCOM || COMPILE_TEST
depends on HAS_IOMEM
depends on REGMAP
help