powerpc/xics: Use of_address_count()
authorRob Herring <robh@kernel.org>
Mon, 27 Mar 2023 22:30:56 +0000 (17:30 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Apr 2023 12:11:03 +0000 (22:11 +1000)
commit037c47a436eab2d336d5e131ab1c1394f223a57b
tree8ce56b79929855565159fcc545b01df3d6ebdf65
parente4ab08be5b4902e5b350b0e1e1a3c25eb21d76d4
powerpc/xics: Use of_address_count()

icp_native_init_one_node() only needs the number of entries in "reg".
Replace the open coded "reg" parsing with of_address_count() to get the
number of "reg" entries.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230327223056.820086-1-robh@kernel.org
arch/powerpc/sysdev/xics/icp-native.c