diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-21 03:54:05 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-07-24 03:41:35 -0400 |
commit | a004cd42181409eda70804ded240a791f4564d61 (patch) | |
tree | dda56f65f1fc420ec9aadfaed2f18695a30c5d3c /kernel/sched.c | |
parent | def01bc53d03881acfc393bd10a5c7575187e008 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 1f7919add8ae..953f037dc053 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -7654,7 +7654,7 @@ static int __init migration_init(void) | |||
7654 | migration_call(&migration_notifier, CPU_ONLINE, cpu); | 7654 | migration_call(&migration_notifier, CPU_ONLINE, cpu); |
7655 | register_cpu_notifier(&migration_notifier); | 7655 | register_cpu_notifier(&migration_notifier); |
7656 | 7656 | ||
7657 | return err; | 7657 | return 0; |
7658 | } | 7658 | } |
7659 | early_initcall(migration_init); | 7659 | early_initcall(migration_init); |
7660 | #endif | 7660 | #endif |