powerpc/rtasd: use correct OF API for event scan rate
authorNathan Lynch <nathanl@linux.ibm.com>
Fri, 18 Nov 2022 15:07:40 +0000 (09:07 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 7 Dec 2022 11:20:33 +0000 (22:20 +1100)
commitb10af504a2015d12c566b6b0a4c7e3b602949eeb
treec70d353f65d10f06f14172cca1fe8adbe74ed8f6
parent336e2554ec99eb97616004c791ee89abe96bdab2
powerpc/rtasd: use correct OF API for event scan rate

rtas_token() should be used only for properties that are RTAS function
tokens. "rtas-event-scan-rate" does not contain a function token, but it
has the same size/format as token properties so reading it with
rtas_token() happens to work.

Convert to of_property_read_u32().

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221118150751.469393-3-nathanl@linux.ibm.com
arch/powerpc/kernel/rtasd.c