linux/include/soc/tegra
Arnd Bergmann bd737038d5 soc/tegra: Fix link errors with PMC disabled
With the new Tegra186 PMC driver merged, anything that relies on the previous
PMC driver fails to link when that is disabled:

arch/arm/mach-tegra/pm.o: In function `tegra_pm_set':
pm.c:(.text.tegra_pm_set+0x3c): undefined reference to `tegra_pmc_enter_suspend_mode'
arch/arm/mach-tegra/pm.o: In function `tegra_suspend_enter':
pm.c:(.text.tegra_suspend_enter+0x4): undefined reference to `tegra_pmc_get_suspend_mode'
arch/arm/mach-tegra/pm.o: In function `tegra_init_suspend':
pm.c:(.init.text+0x1c): undefined reference to `tegra_pmc_get_suspend_mode'
pm.c:(.init.text+0x74): undefined reference to `tegra_pmc_set_suspend_mode'

ERROR: tegra_powergate_sequence_power_up [drivers/ata/ahci_tegra.ko] undefined!
ERROR: tegra_powergate_power_off [drivers/ata/ahci_tegra.ko] undefined!

Making the definition depend on the presence of the driver makes it build
again, though that might not be the correct fix.

Reported-by: Krzysztof Kozlowski <krzk@kernel.org>
Fixes: 854014236290 ("soc/tegra: Implement Tegra186 PMC support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2017-04-04 15:43:51 +02:00
..
ahb.h
bpmp-abi.h firmware: tegra: Add BPMP support 2016-11-18 14:33:43 +01:00
bpmp.h firmware: tegra: Add BPMP support 2016-11-18 14:33:43 +01:00
common.h soc/tegra: Implement runtime check for Tegra SoCs 2014-07-17 14:58:41 +02:00
cpuidle.h soc/tegra: Stub out PCIe IRQ workaround on 64-bit ARM 2016-06-30 13:54:17 +02:00
emc.h memory: tegra: Add EMC (external memory controller) driver 2015-05-05 11:12:17 +02:00
fuse.h phy: tegra: Add Tegra210 support 2016-04-29 16:44:48 +02:00
ivc.h firmware: tegra: Add IVC library 2016-11-18 14:33:42 +01:00
mc.h IOMMU Updates for Linux v4.3 2015-09-08 17:22:35 -07:00
pm.h soc/tegra: pmc: restrict compilation of suspend-related support to ARM 2015-01-09 13:41:19 +01:00
pmc.h soc/tegra: Fix link errors with PMC disabled 2017-04-04 15:43:51 +02:00