arm64: tegra: add regulator dependency
PATCH 1/1 arm64: tegra: add regulator dependency
From: Arnd Bergmann <[email protected]>
The two regulator drivers in the drivers/soc/ directory fail to build when regulator support is disabled:
aarch64-linux-ld: drivers/soc/tegra/regulators-tegra20.o: in function `tegra20_regulator_reboot':
regulators-tegra20.c:(.text.tegra20_regulator_reboot+0x4c): undefined reference to `regulator_sync_voltage_rdev'
aarch64-linux-ld: regulators-tegra20.c:(.text.tegra20_regulator_reboot+0x58): undefined reference to `regulator_sync_voltage_rdev'
aarch64-linux-ld: drivers/soc/tegra/regulators-tegra30.o: in function `tegra30_regulator_reboot':
regulators-tegra30.c:(.text.tegra30_regulator_reboot+0x44): undefined reference to `regulator_sync_voltage_rdev'
aarch64-linux-ld: regulators-tegra30.c:(.text.tegra30_regulator_reboot+0x50): undefined reference to `regulator_sync_voltage_rdev'
Add a Kconfig dependency to avoid this configuration.
--- drivers/soc/tegra/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
drivers/soc/tegra/Kconfig +2 -0
@@ -153,8 +153,10 @@ config SOC_TEGRA_POWERGATE_BPMP config SOC_TEGRA20_VOLTAGE_COUPLER bool "Voltage scaling support for Tegra20 SoCs" + depends on REGULATOR depends on ARCH_TEGRA_2x_SOC || COMPILE_TEST config SOC_TEGRA30_VOLTAGE_COUPLER bool "Voltage scaling support for Tegra30 SoCs" + depends on REGULATOR depends on ARCH_TEGRA_3x_SOC || COMPILE_TEST
Signature · 1 line
2.29.2