X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fof%2Fbase.c;h=7d4c70f859e30687bcd0892c195f9cbfc34826dc;hb=304d91a26dda826dcc1241c45fb2f7903300b1f1;hp=865d3f66c86b2735810e1f6d4d7a219dfd9b350e;hpb=5acb8bb4412554db6346a4010c04e7e0f57324d0;p=karo-tx-linux.git diff --git a/drivers/of/base.c b/drivers/of/base.c index 865d3f66c86b..7d4c70f859e3 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -303,10 +303,8 @@ struct device_node *of_get_cpu_node(int cpu, unsigned int *thread) struct device_node *cpun, *cpus; cpus = of_find_node_by_path("/cpus"); - if (!cpus) { - pr_warn("Missing cpus node, bailing out\n"); + if (!cpus) return NULL; - } for_each_child_of_node(cpus, cpun) { if (of_node_cmp(cpun->type, "cpu"))