Skip to contentSkip to conversation

register_cpu __devinit or __cpuinit

PATCH/RFC Randy Dunlap 1 participant 1 message Oct 29, 2007 Driver core

lore
Share & tools
lore
#0 lore raw

From: Randy Dunlap <[email protected]>

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

---
 drivers/base/cpu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/cpu.c +1 -1
@@ -110,7 +110,7 @@ static SYSDEV_ATTR(crash_notes, 0400, sh
  *
  * 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);