]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: Rework riscv_cpu_probe for current event macros
authorTom Rini <trini@konsulko.com>
Mon, 4 Sep 2023 19:06:34 +0000 (15:06 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 6 Sep 2023 17:47:20 +0000 (13:47 -0400)
This function should now be a EVENT_SPY_SIMPLE call, update it.

Tested-by: Milan P. Stanić <mps@arvanta.net>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/riscv/cpu/cpu.c

index d64aa330f206531f57ce527b76f325752cbb3241..cfe9fdc9df5573c0e88027ab54d0d68f377581c5 100644 (file)
@@ -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