Skip to contentSkip to conversation

soc: imx: add PM dependency for IMX7_PM_DOMAINS

PATCH Applied Arnd Bergmann 3 participants 3 messages May 11, 2017 – May 12, 2017 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: imx: add PM dependency for IMX7_PM_DOMAINS

The new pm domain driver causes a build failure when CONFIG_PM is not set:

warning: (IMX7_PM_DOMAINS) selects PM_GENERIC_DOMAINS which has unmet direct dependencies (PM) drivers/base/power/domain_governor.c: In function 'default_suspend_ok':
drivers/base/power/domain_governor.c:75:17: error: 'struct dev_pm_info' has no member named 'ignore_children'

This adds a dependency to ensure that we don't attempt to build the driver without CONFIG_PM.

Fixes 03aa12629fc4 ("soc: imx: Add GPCv2 power gating driver")
---
 drivers/soc/imx/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/soc/imx/Kconfig +2 -1
index 357a5d8f8da0..a5b86a28f343 100644
@@ -2,8 +2,9 @@ menu "i.MX SoC drivers"
 
 config IMX7_PM_DOMAINS
 	bool "i.MX7 PM domains"
-	select PM_GENERIC_DOMAINS
 	depends on SOC_IMX7D || (COMPILE_TEST && OF)
+	depends on PM
+	select PM_GENERIC_DOMAINS
 	default y if SOC_IMX7D
 
 endmenu
Signature · 1 line
2.9.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Arnd Bergmann

The new pm domain driver causes a build failure when CONFIG_PM is not set:

warning: (IMX7_PM_DOMAINS) selects PM_GENERIC_DOMAINS which has unmet direct dependencies (PM) drivers/base/power/domain_governor.c: In function 'default_suspend_ok':
drivers/base/power/domain_governor.c:75:17: error: 'struct dev_pm_info' has no member named 'ignore_children'

Quoted 5 lines

This adds a dependency to ensure that we don't attempt to build the driver without CONFIG_PM.

Fixes 03aa12629fc4 ("soc: imx: Add GPCv2 power gating driver")
Applied
#2 lore raw
In reply to Arnd Bergmann
Quoted 7 lines · Arnd Bergmann

The new pm domain driver causes a build failure when CONFIG_PM is not set:

warning: (IMX7_PM_DOMAINS) selects PM_GENERIC_DOMAINS which has unmet direct dependencies (PM) drivers/base/power/domain_governor.c: In function 'default_suspend_ok':
drivers/base/power/domain_governor.c:75:17: error: 'struct dev_pm_info' has no member named 'ignore_children'

Quoted 5 lines

This adds a dependency to ensure that we don't attempt to build the driver without CONFIG_PM.

Fixes 03aa12629fc4 ("soc: imx: Add GPCv2 power gating driver")

Applied, thanks.