PM / Domains: Fix compilation error for devices that don't enable PM_SLEEP
Subsystems (4)
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")
Signed-off-by Franklin S Cooper Jr <[email protected]>
--- drivers/base/power/domain.c | 1 + 1 file changed, 1 insertion(+)
drivers/base/power/domain.c +1 -0
@@ -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
Quoted 9 lines · Franklin S Cooper Jr
Set
pm_genpd_poweroff_noirqto NULL ifCONFIG_PM_SLEEPisn't enabled. This is the same approach done for otherPM_SLEEPrelated functions.Without this patch building the kernel with the
keystone_defconfigresults in a compilation error.Fixes 10da65423fdb ("PM / Domains: Call driver's noirq callbacks")Signed-off-by Franklin S Cooper Jr <[email protected]>
That should be fixed already in the Linus' tree.
Thanks,
Rafael