aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/base/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index 23f2c4cd48d1..4dabf5077c48 100644
--- a/drivers/base/cpu.c
+++ b/drivers/base/cpu.c
@@ -240,6 +240,7 @@ int __cpuinit register_cpu(struct cpu *cpu, int num)
240 int error; 240 int error;
241 241
242 cpu->node_id = cpu_to_node(num); 242 cpu->node_id = cpu_to_node(num);
243 memset(&cpu->dev, 0x00, sizeof(struct device));
243 cpu->dev.id = num; 244 cpu->dev.id = num;
244 cpu->dev.bus = &cpu_subsys; 245 cpu->dev.bus = &cpu_subsys;
245 cpu->dev.release = cpu_device_release; 246 cpu->dev.release = cpu_device_release;