diff --git a/kernel/power/energy_model.c b/kernel/power/energy_model.c index c1ff7fa030ab..994ca8353543 100644 --- a/kernel/power/energy_model.c +++ b/kernel/power/energy_model.c @@ -85,7 +85,7 @@ static int __init em_debug_init(void) return 0; } -core_initcall(em_debug_init); +fs_initcall(em_debug_init); #else /* CONFIG_DEBUG_FS */ static void em_debug_create_pd(struct device *dev) {} static void em_debug_remove_pd(struct device *dev) {}