Skip to content

Commit af3eb27

Browse files
arndbrafaeljw
authored andcommitted
PM / Domains: provide pm_genpd_poweroff_noirq() stub
When CONFIG_PM_SLEEP is disabled, we don't have a pm_genpd_poweroff_noirq function definition: drivers/base/power/domain.c: In function 'pm_genpd_init': drivers/base/power/domain.c:1549:37: error: 'pm_genpd_poweroff_noirq' undeclared (first use in this function); did you mean 'genpd_power_off_unused'? This adds another NULL definition for it, just like we already have for the other _noirq handlers. Fixes: 10da654 (PM / Domains: Call driver's noirq callbacks) Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 23c6d2c commit af3eb27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/base/power/domain.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,7 @@ EXPORT_SYMBOL_GPL(pm_genpd_syscore_poweron);
11801180
#define pm_genpd_resume_noirq NULL
11811181
#define pm_genpd_freeze_noirq NULL
11821182
#define pm_genpd_thaw_noirq NULL
1183+
#define pm_genpd_poweroff_noirq NULL
11831184
#define pm_genpd_restore_noirq NULL
11841185
#define pm_genpd_complete NULL
11851186

0 commit comments

Comments
 (0)