diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index ac292eee83d6..4200ca5e36a8 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -319,6 +319,7 @@ int __cpuinit register_cpu(struct cpu *cpu, int num) cpu->dev.id = num; cpu->dev.bus = &cpu_subsys; cpu->dev.release = cpu_device_release; + cpu->dev.of_node = of_get_cpu_node(num, NULL); #ifdef CONFIG_ARCH_HAS_CPU_AUTOPROBE cpu->dev.bus->uevent = cpu_uevent; #endif