aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-21 03:54:05 -0400
committerThomas Gleixner <tglx@linutronix.de>2009-07-21 03:57:50 -0400
commit56ca3901436e5a2d023185d39b12994b4f058798 (patch)
treeaa856059839a80833da42cb7c279577417040bb7 /kernel/sched.c
parent842eaa3dc8f62d33165ef7f858bd8dff9540cf68 (diff)
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: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 5688a79656ca..c235d4540081 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7623,7 +7623,7 @@ static int __init migration_init(void)
7623 migration_call(&migration_notifier, CPU_ONLINE, cpu); 7623 migration_call(&migration_notifier, CPU_ONLINE, cpu);
7624 register_cpu_notifier(&migration_notifier); 7624 register_cpu_notifier(&migration_notifier);
7625 7625
7626 return err; 7626 return 0;
7627} 7627}
7628early_initcall(migration_init); 7628early_initcall(migration_init);
7629#endif 7629#endif