Commit a004cd42 authored by Thomas Gleixner's avatar Thomas Gleixner

sched: Fix return value of migration_init()

migration_init() returns the return value of the hotplug notifier. In
the success case this is NOTIFY_OK which is 1. initcall_debug
evaluates that as an error code because init calls are expected to
return 0 on success.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent def01bc5
...@@ -7654,7 +7654,7 @@ static int __init migration_init(void) ...@@ -7654,7 +7654,7 @@ static int __init migration_init(void)
migration_call(&migration_notifier, CPU_ONLINE, cpu); migration_call(&migration_notifier, CPU_ONLINE, cpu);
register_cpu_notifier(&migration_notifier); register_cpu_notifier(&migration_notifier);
return err; return 0;
} }
early_initcall(migration_init); early_initcall(migration_init);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment