clk: mvebu: Use of_get_cpu_hwid() to read CPU ID
authorRob Herring <robh@kernel.org>
Fri, 9 Jun 2023 18:13:46 +0000 (12:13 -0600)
committerStephen Boyd <sboyd@kernel.org>
Tue, 20 Jun 2023 18:56:27 +0000 (11:56 -0700)
commit1949c0ebc8d660d35ea968ed609c528076b7d44f
tree2aef705f4b0133c58dce5a831ba0d1c620940013
parent1ab391684c9e195c05834def0d08779500b0b319
clk: mvebu: Use of_get_cpu_hwid() to read CPU ID

Use of_get_cpu_hwid() rather than the open coded reading of the CPU
nodes "reg" property. The existing code is in fact wrong as the "reg"
address cells size is 2 cells for arm64. The existing code happens to
work because the DTS files are wrong as well.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230327-mvebu-clk-fixes-v2-2-8333729ee45d@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mvebu/ap-cpu-clk.c