Skip to content
Commit bd73d1fd authored by Rob Herring's avatar Rob Herring Committed by Stephen Boyd
Browse files

clk: mvebu: Iterate over possible CPUs instead of DT CPU nodes



Rework iterating over DT CPU nodes to iterate over possible CPUs
instead. There's no need to walk the DT CPU nodes again. Possible CPUs
is equal to the number of CPUs defined in the DT. Using the "reg" value
for an array index is fragile as it assumes "reg" is 0-N which often is
not the case.

Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230327-mvebu-clk-fixes-v2-3-8333729ee45d@kernel.org


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 1949c0eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment