]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: zx: only build power domain code when CONFIG_PM=y
authorArnd Bergmann <arnd@arndb.de>
Mon, 16 Nov 2015 17:01:19 +0000 (18:01 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 19 Nov 2015 15:16:45 +0000 (16:16 +0100)
commit098caa2d47496b5c17d06b69548ac69a98ef7c39
tree54d413fc36ac25864f7059ba8574b936cecaeb72
parent5129b0ff86dcbd403dcaed516a9412477e60243d
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: 9972c139de79 ("ARM: zx: Add power domains for ZX296702")
Reviewed-by: Jun Nie <jun.nie@linaro.org>
arch/arm/mach-zx/Kconfig