[PATCH] powerpc: Fix some initcall return values
Non zero initcalls (except for -ENODEV) have started warning at boot. Fix smt_setup and init_ras_IRQ. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
9fe901d124
commit
69ed332498
@@ -65,11 +65,11 @@ static int __init smt_setup(void)
|
|||||||
unsigned int cpu;
|
unsigned int cpu;
|
||||||
|
|
||||||
if (!cpu_has_feature(CPU_FTR_SMT))
|
if (!cpu_has_feature(CPU_FTR_SMT))
|
||||||
return 1;
|
return -ENODEV;
|
||||||
|
|
||||||
options = find_path_device("/options");
|
options = find_path_device("/options");
|
||||||
if (!options)
|
if (!options)
|
||||||
return 1;
|
return -ENODEV;
|
||||||
|
|
||||||
val = (unsigned int *)get_property(options, "ibm,smt-snooze-delay",
|
val = (unsigned int *)get_property(options, "ibm,smt-snooze-delay",
|
||||||
NULL);
|
NULL);
|
||||||
@@ -78,7 +78,7 @@ static int __init smt_setup(void)
|
|||||||
per_cpu(smt_snooze_delay, cpu) = *val;
|
per_cpu(smt_snooze_delay, cpu) = *val;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
__initcall(smt_setup);
|
__initcall(smt_setup);
|
||||||
|
|
||||||
|
@@ -132,7 +132,7 @@ static int __init init_ras_IRQ(void)
|
|||||||
of_node_put(np);
|
of_node_put(np);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
__initcall(init_ras_IRQ);
|
__initcall(init_ras_IRQ);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user