Commit 9bb45cd4 authored by Arnd Bergmann's avatar Arnd Bergmann

soc: raspberrypi-power: add CONFIG_OF dependency

We get a harmless warning if the RASPBERRYPI_POWER driver is enabled without
CONFIG_OF during compile testing:

warning: RASPBERRYPI_POWER 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: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarEric Anholt <eric@anholt.net>
parent e517dfe6
...@@ -2,10 +2,9 @@ menu "Broadcom SoC drivers" ...@@ -2,10 +2,9 @@ menu "Broadcom SoC drivers"
config RASPBERRYPI_POWER config RASPBERRYPI_POWER
bool "Raspberry Pi power domain driver" bool "Raspberry Pi power domain driver"
depends on ARCH_BCM2835 || COMPILE_TEST depends on ARCH_BCM2835 || (COMPILE_TEST && OF)
depends on RASPBERRYPI_FIRMWARE=y depends on RASPBERRYPI_FIRMWARE=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 RPi power domains which can be enabled This enables support for the RPi power domains which can be enabled
or disabled via the RPi firmware. or disabled via the RPi firmware.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment