Don't hang if there is no /cpus node in the device tree.

This commit is contained in:
Tim Kientzle 2012-05-11 04:18:39 +00:00
parent 87ba494b0e
commit 9b1cb34ced

View File

@ -317,6 +317,8 @@ fixup_cpubusfreqs(unsigned long cpufreq, unsigned long busfreq)
/* We want to modify every subnode of /cpus */
o = fdt_path_offset(fdtp, "/cpus");
if (o < 0)
return;
/* maxo should contain offset of node next to /cpus */
depth = 0;