Skip to content

Commit ca12310

Browse files
committed
PM: Fix build issue in main.c for CONFIG_PM_SLEEP unset
Suspend statistics should depend on CONFIG_PM_SLEEP, so make that happen. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
1 parent 2a77c46 commit ca12310

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎kernel/power/main.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ static ssize_t pm_test_store(struct kobject *kobj, struct kobj_attribute *attr,
133133
power_attr(pm_test);
134134
#endif /* CONFIG_PM_DEBUG */
135135

136-
#endif /* CONFIG_PM_SLEEP */
137-
138136
#ifdef CONFIG_DEBUG_FS
139137
static char *suspend_step_name(enum suspend_stat_step step)
140138
{
@@ -230,6 +228,8 @@ static int __init pm_debugfs_init(void)
230228
late_initcall(pm_debugfs_init);
231229
#endif /* CONFIG_DEBUG_FS */
232230

231+
#endif /* CONFIG_PM_SLEEP */
232+
233233
struct kobject *power_kobj;
234234

235235
/**

0 commit comments

Comments
 (0)