linux_old1/arch/arm/mach-zx
Arnd Bergmann a203a2a9ec ARM: zx: only build power domain code when CONFIG_PM=y
The newly added zx power domain code causes build errors in
some configurations:

warning: (PM_RMOBILE && SOC_ZX296702) selects PM_GENERIC_DOMAINS which has unmet direct dependencies (PM)
warning: (ARCH_EXYNOS) selects EXYNOS_THERMAL which has unmet direct dependencies (THERMAL && (ARCH_EXYNOS || COMPILE_TEST) && THERMAL_OF)
power/domain.c: In function 'genpd_queue_power_off_work':
power/domain.c:192:13: error: 'pm_wq' undeclared (first use in this function)
  queue_work(pm_wq, &genpd->power_off_work);
             ^
power/domain.c:192:13: note: each undeclared identifier is reported only once for each function it appears in

This ensures we don't try to enable it when CONFIG_PM is
disabled, mirroring what we do on most other platforms.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: f15107f412 ("ARM: zx: Add power domains for ZX296702")
Reviewed-by: Jun Nie <jun.nie@linaro.org>
2015-11-19 16:16:45 +01:00
..
Kconfig ARM: zx: only build power domain code when CONFIG_PM=y 2015-11-19 16:16:45 +01:00
Makefile ARM: zx: Add power domains for ZX296702 2015-07-30 14:36:36 +02:00
core.h ARM: zx: enable SMP and hotplug for zx296702 2015-05-15 21:49:51 +02:00
headsmp.S ARM: zx: fix building with CONFIG_THUMB2_KERNEL 2015-05-22 16:45:54 +02:00
platsmp.c ARM: zx: enable SMP and hotplug for zx296702 2015-05-15 21:49:51 +02:00
zx296702-pm-domain.c ARM: zx: Add power domains for ZX296702 2015-07-30 14:36:36 +02:00
zx296702.c ARM: appropriate __init annotation for const data 2015-07-28 13:55:27 +02:00