Skip to contentSkip to conversation

PM / Domains: Fix compilation error for devices that don't enable PM_SLEEP

PATCH In review Franklin S Cooper Jr 2 participants 2 messages Jul 10, 2017 – Jul 12, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM / Domains: Fix compilation error for devices that don't enable PM_SLEEP

Set pm_genpd_poweroff_noirq to NULL if CONFIG_PM_SLEEP isn't enabled. This is the same approach done for other PM_SLEEP related functions.

Without this patch building the kernel with the keystone_defconfig results in a compilation error.

Fixes 10da65423fdb ("PM / Domains: Call driver's noirq callbacks")
---
 drivers/base/power/domain.c | 1 +
 1 file changed, 1 insertion(+)
drivers/base/power/domain.c +1 -0
index 9649dce..c140a9d5 100644
@@ -1182,6 +1182,7 @@ EXPORT_SYMBOL_GPL(pm_genpd_syscore_poweron);
 #define pm_genpd_thaw_noirq		NULL
 #define pm_genpd_restore_noirq		NULL
 #define pm_genpd_complete		NULL
+#define pm_genpd_poweroff_noirq		NULL
 
 #endif /* CONFIG_PM_SLEEP */
 
Signature · 1 line
2.10.0
#1 lore raw
Quoted 9 lines · Franklin S Cooper Jr

Set pm_genpd_poweroff_noirq to NULL if CONFIG_PM_SLEEP isn't enabled. This is the same approach done for other PM_SLEEP related functions.

Without this patch building the kernel with the keystone_defconfig results in a compilation error.

Fixes 10da65423fdb ("PM / Domains: Call driver's noirq callbacks")

That should be fixed already in the Linus' tree.

Thanks,
Rafael