Don't hang if there is no /cpus node in the device tree.
This commit is contained in:
parent
87ba494b0e
commit
9b1cb34ced
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user