]> git.baikalelectronics.ru Git - kernel.git/commit
soc: imx: add PM dependency for IMX7_PM_DOMAINS
authorArnd Bergmann <arnd@arndb.de>
Thu, 11 May 2017 11:37:47 +0000 (13:37 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 15 May 2017 01:33:22 +0000 (09:33 +0800)
commit6364cba0ce14a7b41814a0ab6d757614ebace5b2
tree64b9dcde862e5d2942f379ea7739ba07a1c102f4
parent77490da3c3d19aace7283ad59326b49cc35f72f1
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: c5dda9038070 ("soc: imx: Add GPCv2 power gating driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/Kconfig