firmware: scpi: add CONFIG_OF dependency
authorArnd Bergmann <arnd@arndb.de>
Wed, 6 Jul 2016 12:49:46 +0000 (14:49 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 7 Jul 2016 12:58:14 +0000 (14:58 +0200)
commite517dfe67480fcca90831ac02e184859200bbaf6
tree1011700669face89418509a9ca10e98a1bc27c3e
parent82be1178ee839ac93f8bb90550892c478d53e6e5
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>
drivers/firmware/Kconfig