summaryrefslogtreecommitdiff
path: root/drivers/firmware
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-07-06 15:49:46 +0300
committerArnd Bergmann <arnd@arndb.de>2016-07-07 15:58:14 +0300
commite517dfe67480fcca90831ac02e184859200bbaf6 (patch)
tree1011700669face89418509a9ca10e98a1bc27c3e /drivers/firmware
parent82be1178ee839ac93f8bb90550892c478d53e6e5 (diff)
downloadlinux-e517dfe67480fcca90831ac02e184859200bbaf6.tar.xz
firmware: scpi: add CONFIG_OF dependency
We get a harmless warning if the ARM_SCPI_POWER_DOMAIN driver is enabled without CONFIG_OF during compile testing: warning: (ARM_SCPI_POWER_DOMAIN) selects PM_GENERIC_DOMAINS_OF which has unmet direct dependencies (PM_GENERIC_DOMAINS && OF) There is no need to select PM_GENERIC_DOMAINS_OF if OF is set, so we can replace the 'select' with a dependency. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 8bec4337ad40 ("firmware: scpi: add device power domain support using genpd") Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/Kconfig3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig
index 541d3fb7ae43..0e22f241403b 100644
--- a/drivers/firmware/Kconfig
+++ b/drivers/firmware/Kconfig
@@ -29,10 +29,9 @@ config ARM_SCPI_PROTOCOL
config ARM_SCPI_POWER_DOMAIN
tristate "SCPI power domain driver"
- depends on ARM_SCPI_PROTOCOL || COMPILE_TEST
+ depends on ARM_SCPI_PROTOCOL || (COMPILE_TEST && OF)
default y
select PM_GENERIC_DOMAINS if PM
- select PM_GENERIC_DOMAINS_OF if PM
help
This enables support for the SCPI power domains which can be
enabled or disabled via the SCP firmware