提交 e517dfe6 编写于 作者: A Arnd Bergmann

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: NArnd Bergmann <arnd@arndb.de>
Fixes: 8bec4337 ("firmware: scpi: add device power domain support using genpd")
Acked-by: NSudeep Holla <sudeep.holla@arm.com>
上级 82be1178
...@@ -29,10 +29,9 @@ config ARM_SCPI_PROTOCOL ...@@ -29,10 +29,9 @@ config ARM_SCPI_PROTOCOL
config ARM_SCPI_POWER_DOMAIN config ARM_SCPI_POWER_DOMAIN
tristate "SCPI power domain driver" tristate "SCPI power domain driver"
depends on ARM_SCPI_PROTOCOL || COMPILE_TEST depends on ARM_SCPI_PROTOCOL || (COMPILE_TEST && OF)
default y default y
select PM_GENERIC_DOMAINS if PM select PM_GENERIC_DOMAINS if PM
select PM_GENERIC_DOMAINS_OF if PM
help help
This enables support for the SCPI power domains which can be This enables support for the SCPI power domains which can be
enabled or disabled via the SCP firmware enabled or disabled via the SCP firmware
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册