diff --git a/include/linux/of_device.h b/include/linux/of_device.h index b4ad8b4f85065dae43ab10be81ac27851b4802e7..611502524425c8d7a57753efe693b3317c0a9726 100644 --- a/include/linux/of_device.h +++ b/include/linux/of_device.h @@ -50,7 +50,7 @@ static inline struct device_node *of_cpu_device_node_get(int cpu) struct device *cpu_dev; cpu_dev = get_cpu_device(cpu); if (!cpu_dev) - return NULL; + return of_get_cpu_node(cpu, NULL); return of_node_get(cpu_dev->of_node); }