Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2,10 +2,9 @@ menu "Broadcom SoC drivers"

config RASPBERRYPI_POWER
	bool "Raspberry Pi power domain driver"
	depends on ARCH_BCM2835 || COMPILE_TEST
	depends on ARCH_BCM2835 || (COMPILE_TEST && OF)
	depends on RASPBERRYPI_FIRMWARE=y
	select PM_GENERIC_DOMAINS if PM
	select PM_GENERIC_DOMAINS_OF if PM
	help
	  This enables support for the RPi power domains which can be enabled
	  or disabled via the RPi firmware.