Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: amlogic: gx pm domain: add PM and OF dependencies

The new driver introduces harmless warnings:

warning: (PM_RMOBILE && ARCH_RCAR_GEN1 && ARCH_RCAR_GEN2 && ARCH_R7S72100 && MESON_GX_PM_DOMAINS) selects PM_GENERIC_DOMAINS which has unmet direct dependencies (PM)
warning: (MESON_GX_PM_DOMAINS) selects PM_GENERIC_DOMAINS_OF which has unmet direct dependencies (PM_GENERIC_DOMAINS && OF)

This adds CONFIG_OF and CONFIG_PM dependencies to ensure it
will only be enabled in valid configurations.

Fixes: 75fcb5ca4b46 ("soc: amlogic: add Meson GX VPU Domains driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+1
+1
drivers/soc/amlogic/Kconfig
··· 12 12 config MESON_GX_PM_DOMAINS 13 13 bool "Amlogic Meson GX Power Domains driver" 14 14 depends on ARCH_MESON || COMPILE_TEST 15 + depends on PM && OF 15 16 default ARCH_MESON 16 17 select PM_GENERIC_DOMAINS 17 18 select PM_GENERIC_DOMAINS_OF