From: Tom Rini Date: Mon, 4 Sep 2023 19:06:34 +0000 (-0400) Subject: riscv: Rework riscv_cpu_probe for current event macros X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=68f446fb9b0b137dd4e288985ed674be5e544a1e;p=u-boot.git riscv: Rework riscv_cpu_probe for current event macros This function should now be a EVENT_SPY_SIMPLE call, update it. Tested-by: Milan P. Stanić Reviewed-by: Heinrich Schuchardt Signed-off-by: Tom Rini --- diff --git a/arch/riscv/cpu/cpu.c b/arch/riscv/cpu/cpu.c index d64aa330f2..cfe9fdc9df 100644 --- a/arch/riscv/cpu/cpu.c +++ b/arch/riscv/cpu/cpu.c @@ -66,7 +66,7 @@ static inline bool supports_extension(char ext) #endif /* CONFIG_CPU */ } -static int riscv_cpu_probe(void *ctx, struct event *event) +static int riscv_cpu_probe(void) { #ifdef CONFIG_CPU int ret; @@ -79,7 +79,7 @@ static int riscv_cpu_probe(void *ctx, struct event *event) return 0; } -EVENT_SPY(EVT_DM_POST_INIT_R, riscv_cpu_probe); +EVENT_SPY_SIMPLE(EVT_DM_POST_INIT_R, riscv_cpu_probe); /* * This is called on secondary harts just after the IPI is init'd. Currently