projects/linux·commit 33b5f31b

register_cpu __devinit or __cpuinit

33b5f31b · Randy Dunlap <[email protected]> · 2008-02-06 01:36:28 -08:00

Is there some reason why register_cpu() is __devinit instead of __cpuinit ?
Make it __cpuinit.

Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
33b5f31bbc4d047d048d8635fccdab38ffe6c287
Parents
96c58655

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/base/cpu.cmodified+1−1View file

drivers/base/cpu.c

View file
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index c5885f5..499b003 100644
--- a/drivers/base/cpu.c
+++ b/drivers/base/cpu.c
@@ -110,7 +110,7 @@ static SYSDEV_ATTR(crash_notes, 0400, show_crash_notes, NULL);
*
* Initialize and register the CPU device.
*/
-int __devinit register_cpu(struct cpu *cpu, int num)
+int __cpuinit register_cpu(struct cpu *cpu, int num)
{
int error;
cpu->node_id = cpu_to_node(num);